lib/vagrant-publish/vagrant.rb
# TODO: Expose as just 'boxes', move code into VagrantBox
Expose as just 'boxes', move code into VagrantBox
Expose as just ' boxes ' move code into VagrantBox
def box_names
    response = RestClient.get "https://vagrantcloud.com/api/v1/user/#{@name}",
      'access_token' => @token
    names = []
    obj = JSON.parse(response)
    for box in obj['boxes']
      names << { name: box['name'], tag: box['tag'] }
    end
    return names
  end
def box_names response = RestClient . get "https://vagrantcloud.com/api/v1/user/#{@name}" , 'access_token' => @token names = [ ] obj = JSON . parse ( response ) for box in obj [ 'boxes' ] names << { name : box [ 'name' ] , tag : box [ 'tag' ] } end return names end
TODO: Expose as just 'boxes', move code into VagrantBox
TODO : Expose as just ' boxes ' move code into VagrantBox