Sha256: cc79bd4fbbcc709c8610ed27a2e89f645abecbba3d10a8f5590c066a4c8adf65

Contents?: true

Size: 632 Bytes

Versions: 15

Compression:

Stored size: 632 Bytes

Contents

require 'fog/core/collection'
require 'fog/storm_on_demand/models/network/ruleset'

module Fog
  module Network
    class StormOnDemand
      class Rulesets < Fog::Collection
        model Fog::Network::StormOnDemand::Ruleset

        def create(name, server_id)
          r = service.create_ruleset(:name => name, :uniq_id => server_id).body
          new(r)
        end

        def get(ruleset)
          r = service.get_ruleset(:ruleset => ruleset).body
          new(r)
        end

        def all(options={})
          r = service.list_rulesets(options).body['item']
          load(r)
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/storm_on_demand/models/network/rulesets.rb
fog-1.25.0 lib/fog/storm_on_demand/models/network/rulesets.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/models/network/rulesets.rb
fog-1.24.0 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/models/network/rulesets.rb
fog-1.23.0 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/models/network/rulesets.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/models/network/rulesets.rb
fog-1.22.1 lib/fog/storm_on_demand/models/network/rulesets.rb