Class: Boxes::VagrantBox
- Inherits:
-
Object
- Object
- Boxes::VagrantBox
- Defined in:
- lib/vagrant_commands/boxes.rb
Instance Attribute Summary collapse
-
#box_location ⇒ Object
Returns the value of attribute box_location.
-
#box_name ⇒ Object
Returns the value of attribute box_name.
-
#box_provider ⇒ Object
Returns the value of attribute box_provider.
-
#box_version ⇒ Object
Returns the value of attribute box_version.
Instance Method Summary collapse
-
#initialize(box_name, box_version, box_provider, box_location) ⇒ VagrantBox
constructor
A new instance of VagrantBox.
- #to_s ⇒ Object
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_location ⇒ Object
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_name ⇒ Object
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_provider ⇒ Object
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_version ⇒ Object
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_s ⇒ Object
58 59 60 |
# File 'lib/vagrant_commands/boxes.rb', line 58 def to_s @box_name + ", " + @box_version + ", " + @box_provider + ", " + @box_location end |