Sha256: cc5f7baf3905491a887e2b3087c28eb667327858bfe386c260bf78940054c671

Contents?: true

Size: 491 Bytes

Versions: 32

Compression:

Stored size: 491 Bytes

Contents

require 'fog/core/collection'
require 'fog/brightbox/models/compute/firewall_rule'

module Fog
  module Compute
    class Brightbox

      class FirewallRules < Fog::Collection

        model Fog::Compute::Brightbox::FirewallRule

        def get(identifier)
          return nil if identifier.nil? || identifier == ""
          data = connection.get_firewall_rule(identifier)
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end

      end

    end
  end
end

Version data entries

32 entries across 32 versions & 12 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-nirvanix-1.8.1 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-parser-fix-1.6.1 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-test-again-1.6.0 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-parser-fix-1.6.0 lib/fog/brightbox/models/compute/firewall_rules.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/brightbox/models/compute/firewall_rules.rb
fog-sgonyea-1.8.1 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.8.0 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.7.0 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.6.0 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.5.0 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.4.0 lib/fog/brightbox/models/compute/firewall_rules.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/firewall_rules.rb
michiels-fog-1.3.1 lib/fog/brightbox/models/compute/firewall_rules.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/brightbox/models/compute/firewall_rules.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.3.1 lib/fog/brightbox/models/compute/firewall_rules.rb
fog-1.3.0 lib/fog/brightbox/models/compute/firewall_rules.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/brightbox/models/compute/firewall_rules.rb