Class: Sahara::Command::Status

Inherits:
Vagrant::Command::Base
  • Object
show all
Defined in:
lib/sahara/command/status.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/sahara/command/status.rb', line 7

def execute

  options = {}

  opts = OptionParser.new do |opts|
    opts.banner = "Shows the status of the sandbox"
    opts.separator ""
    opts.separator "Usage: vagrant sandbox status <vmname>"

  end

  # Parse the options
  argv = parse_options(opts)
  return if !argv

  boxname=argv[0]
  begin
    Sahara::Session.status(boxname)
  end
end