Module: Commands
- Defined in:
- lib/vagrant_commands/commands.rb
Class Method Summary collapse
- .vagrant_box_add(box_location, box_name) ⇒ Object
- .vagrant_box_list ⇒ Object
- .vagrant_plugin_install(plugin_name, plugin_version) ⇒ Object
- .vagrant_plugin_list ⇒ Object
Class Method Details
.vagrant_box_add(box_location, box_name) ⇒ Object
6 7 8 |
# File 'lib/vagrant_commands/commands.rb', line 6 def self.vagrant_box_add(box_location,box_name) `vagrant box add \"#{box_location}\" --name #{box_name}` end |
.vagrant_box_list ⇒ Object
2 3 4 |
# File 'lib/vagrant_commands/commands.rb', line 2 def self.vagrant_box_list result = `vagrant box list --machine-readable` end |
.vagrant_plugin_install(plugin_name, plugin_version) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/vagrant_commands/commands.rb', line 14 def self.vagrant_plugin_install(plugin_name, plugin_version) version = "" if plugin_version != nil version = " --plugin-version #{plugin_version}" end `vagrant plugin install #{plugin_name}#{version}` end |
.vagrant_plugin_list ⇒ Object
10 11 12 |
# File 'lib/vagrant_commands/commands.rb', line 10 def self.vagrant_plugin_list `vagrant plugin list --machine-readable` end |