Class: VagrantPlugins::Scaleway::Command::SecurityGroups

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-scaleway/command/security_groups.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



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

def execute
  opts = OptionParser.new do |o|
    o.banner = 'Usage: vagrant scaleway security-groups [options]'
  end

  argv = parse_options(opts)
  return unless argv

  with_target_vms(argv, provider: :scaleway) do |machine|
    machine.action('list_security_groups')
  end
end