lib/vagrant-profitbricks/command/servers.rb in vagrant-profitbricks-1.0.0 vs lib/vagrant-profitbricks/command/servers.rb in vagrant-profitbricks-4.0.0
- old
+ new
@@ -1,18 +1,21 @@
+# frozen_string_literal: true
+
module VagrantPlugins
module ProfitBricks
module Command
- class Servers < Vagrant.plugin("2", :command)
+ class ListServers < Vagrant.plugin('2', :command)
def execute
+ p 'Garegaer'
options = {}
opts = OptionParser.new do |o|
- o.banner = "Usage: vagrant profitbricks servers [options]"
+ o.banner = 'Usage: vagrant profitbricks servers [options]'
end
argv = parse_options(opts)
- return if !argv
+ return unless argv
- with_target_vms(argv, :provider => :profitbricks) do |machine|
+ with_target_vms(argv, provider: :profitbricks) do |machine|
machine.action('list_servers')
end
end
end
end