Sha256: 2b4a43b7d339b48ca897536421d645f18eeb08d652b259051255fe6595d69af4

Contents?: true

Size: 594 Bytes

Versions: 26

Compression:

Stored size: 594 Bytes

Contents

module Fog
  module Compute
    class Fogdocker
      class Real
        def image_delete(options = {})
          raise ArgumentError, "instance id is a required parameter" unless options.key? :id
          image = Docker::Image.get(options[:id], {}, @connection)
          image.remove()
        end
      end

      class Mock
        def image_delete(options = {})
          raise ArgumentError, "instance id is a required parameter" unless options.key? :id
          "[{'Deleted':'b15c1423ba157d0f7ac83cba178390c421bb8d536e7e7857580fc10f2d53e1b9'}]"
        end
      end
    end
  end
end

Version data entries

26 entries across 24 versions & 4 rubygems

Version Path
fog-2.3.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-ifeel-2.2.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-2.2.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-2.1.0 lib/fog/fogdocker/requests/compute/image_delete.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_delete.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_delete.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.42.1 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-2.0.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.42.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.41.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.40.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.39.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.38.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.37.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.36.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.35.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-2.0.0.pre.0 lib/fog/fogdocker/requests/compute/image_delete.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.34.0 lib/fog/fogdocker/requests/compute/image_delete.rb