Class: Sahara::Command::Off
- Inherits:
-
Vagrant::Command::Base
- Object
- Vagrant::Command::Base
- Sahara::Command::Off
- Defined in:
- lib/sahara/command/off.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/sahara/command/off.rb', line 4 def execute = {} opts = OptionParser.new do |opts| opts. = "Leaves sandbox state" opts.separator "" opts.separator "Usage: vagrant sandbox off <vmname>" end # Parse the options argv = (opts) return if !argv boxname=argv[0] begin Sahara::Session.off(boxname) end end |