Sha256: a3fd66393505311da0fcbc89f7e5c058accce0681c9c145cb40eb1e413a54def

Contents?: true

Size: 577 Bytes

Versions: 17

Compression:

Stored size: 577 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])
          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

17 entries across 17 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.27.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.26.0 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.25.0 lib/fog/fogdocker/requests/compute/image_delete.rb
nsidc-fog-1.24.1 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.24.0 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.11 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.10 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.9 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.8 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.7 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.6 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.23.0 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.4 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.3 lib/fog/fogdocker/requests/compute/image_delete.rb
ns-fog-1.22.2 lib/fog/fogdocker/requests/compute/image_delete.rb
fog-1.22.1 lib/fog/fogdocker/requests/compute/image_delete.rb