Sha256: 83ccd904aa54b526dc1acc1b087aabf599a0e5ebd498b90e2bcc44dc994002fe

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

module Brightbox
  desc 'List Firewall Policies'
  arg_name '[firewall-policy-id...]'
  command [:list] do |c|
    c.action do |global_options,options,args|

      if args.empty?
        firewall_policies = FirewallPolicy.find(:all)
      else
        firewall_policies = FirewallPolicy.find_or_call(args) do |id|
          warn "Couldn't find firewall policy #{id}"
        end
      end
      render_table(firewall_policies, global_options)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.18.0 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.5 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.4 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.3 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.2 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.1 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.17.0 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.16.0 lib/brightbox-cli/commands/firewall-policies-list.rb
brightbox-cli-0.15.0 lib/brightbox-cli/commands/firewall-policies-list.rb