Class: VagrantPlugins::SimpleCloud::Commands::Rebuild
- Inherits:
-
Object
- Object
- VagrantPlugins::SimpleCloud::Commands::Rebuild
- Defined in:
- lib/vagrant-simplecloud/commands/rebuild.rb
Class Method Summary collapse
-
.synopsis ⇒ Object
Show description when ‘vagrant list-commands` is triggered.
Instance Method Summary collapse
Class Method Details
.synopsis ⇒ Object
Show description when ‘vagrant list-commands` is triggered
9 10 11 |
# File 'lib/vagrant-simplecloud/commands/rebuild.rb', line 9 def self.synopsis "plugin: vagrant-simplecloud: destroys and ups the vm with the same ip address" end |
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/vagrant-simplecloud/commands/rebuild.rb', line 13 def execute opts = OptionParser.new do |o| o. = 'Usage: vagrant rebuild [vm-name]' end argv = (opts) with_target_vms(argv) do |machine| machine.action(:rebuild) end 0 end |