Sha256: 10b52527a454ee2b1b61b411ba204c75222ebb28630e04af00a91bf9c8f1f814

Contents?: true

Size: 682 Bytes

Versions: 10

Compression:

Stored size: 682 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class Real
        basic_request :groups_delete, 204, "DELETE"
      end

      class Mock
        def groups_delete(uri)
          group_id = id_from_uri(uri)
          self.data[:groups].delete(group_id)
          self.data[:rows].values.each do |row|
            row[:Groups][:Group].delete_if { |g| g[:id] == group_id }
          end
          self.data[:layouts].values.each do |layout|
            layout[:Rows][:Row].each do |row|
              row[:Groups][:Group].delete_if { |g| g[:id] == group_id }
            end
          end

          response(:body =>  nil, :status => 204)
        end
      end
    end
  end
end

Version data entries

10 entries across 8 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/groups_delete.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/groups_delete.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/requests/groups_delete.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/requests/groups_delete.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/requests/groups_delete.rb