Class: VagrantPlugins::ProfitBricks::Command::ListServers

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-profitbricks/command/servers.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/vagrant-profitbricks/command/servers.rb', line 7

def execute
  p 'Garegaer'
  options = {}
  opts = OptionParser.new do |o|
    o.banner = 'Usage: vagrant profitbricks servers [options]'
  end

  argv = parse_options(opts)
  return unless argv

  with_target_vms(argv, provider: :profitbricks) do |machine|
    machine.action('list_servers')
  end
end