Class: VagrantPlugins::Rackspace::Command::Flavors

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-rackspace/command/flavors.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/vagrant-rackspace/command/flavors.rb', line 5

def execute
  options = {}
  opts = OptionParser.new do |o|
    o.banner = "Usage: vagrant rackspace flavors [options]"
  end

  argv = parse_options(opts)
  return if !argv

  with_target_vms(argv, :provider => :rackspace) do |machine|
    machine.action('list_flavors')
  end
end