Sha256: cf40d734f297a966ee0e6488a6d18e16d50f6674f59486ccadd9bc67b83df701

Contents?: true

Size: 661 Bytes

Versions: 88

Compression:

Stored size: 661 Bytes

Contents

module Fog
  module Compute
    class Cloudstack
      class Real
        def create_security_group(options={})
          options.merge!(
            'command' => 'createSecurityGroup'
          )

          request(options)
        end
      end # Real

      class Mock
        def create_security_group(options={})
          security_group_id = Fog::Cloudstack.uuid

          security_group = {
            "id" => security_group_id,
          }.merge(options)

          self.data[:security_groups][security_group_id]= security_group
          {"createsecuritygroupresponse" => { "securitygroup" => security_group}}
        end
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 13 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.11 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.10 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.9 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.8 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.7 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.6 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.4 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.3 lib/fog/cloudstack/requests/compute/create_security_group.rb
ns-fog-1.22.2 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-1.22.1 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-1.22.0 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-1.21.0 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-1.20.0 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/cloudstack/requests/compute/create_security_group.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/cloudstack/requests/compute/create_security_group.rb