Sha256: 7d007c28caae19e6ce1112d4cbd44aa8f0853c927cce7bc66ae5ac5e0f5f10a7

Contents?: true

Size: 374 Bytes

Versions: 26

Compression:

Stored size: 374 Bytes

Contents

module Fog
  module Compute
    class Fogdocker
      class Real
        def image_create(attrs)
          downcase_hash_keys Docker::Image.create(attrs, nil, @connection).json
        end
      end

      class Mock
        def image_create(attrs)
          {'id'=>'a6b02c7ca29a22619f7d0e59062323247739bc0cd375d619f305f0b519af4ef2'}
        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_create.rb
fog-ifeel-2.2.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-2.2.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-2.1.0 lib/fog/fogdocker/requests/compute/image_create.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_create.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_create.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.42.1 lib/fog/fogdocker/requests/compute/image_create.rb
fog-2.0.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.42.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.41.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.40.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.39.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.38.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.37.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.36.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.35.0 lib/fog/fogdocker/requests/compute/image_create.rb
fog-2.0.0.pre.0 lib/fog/fogdocker/requests/compute/image_create.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/fogdocker/requests/compute/image_create.rb
fog-1.34.0 lib/fog/fogdocker/requests/compute/image_create.rb