Class: Boxes::VagrantBox

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant_commands/boxes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(box_name, box_version, box_provider, box_location) ⇒ VagrantBox

Returns a new instance of VagrantBox.



51
52
53
54
55
56
# File 'lib/vagrant_commands/boxes.rb', line 51

def initialize(box_name, box_version, box_provider,box_location)
  @box_name = box_name
  @box_version = box_version
  @box_provider = box_provider
  @box_location = box_location
end

Instance Attribute Details

#box_locationObject

Returns the value of attribute box_location.



49
50
51
# File 'lib/vagrant_commands/boxes.rb', line 49

def box_location
  @box_location
end

#box_nameObject

Returns the value of attribute box_name.



49
50
51
# File 'lib/vagrant_commands/boxes.rb', line 49

def box_name
  @box_name
end

#box_providerObject

Returns the value of attribute box_provider.



49
50
51
# File 'lib/vagrant_commands/boxes.rb', line 49

def box_provider
  @box_provider
end

#box_versionObject

Returns the value of attribute box_version.



49
50
51
# File 'lib/vagrant_commands/boxes.rb', line 49

def box_version
  @box_version
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/vagrant_commands/boxes.rb', line 58

def to_s
  @box_name + ", " + @box_version + ", " + @box_provider + ", " + @box_location
end