Sha256: 40f5a463e94a5e86c8818f28e632042d7aff18fcd61627e2dd4647c0f50ca0e9

Contents?: true

Size: 504 Bytes

Versions: 26

Compression:

Stored size: 504 Bytes

Contents

module Fog
  module Brightbox
    class Compute
      class Real

        def create_image(options = {})
          request(
            :expects  => [201],
            :method   => 'POST',
            :path     => "/1.0/images",
            :headers  => {"Content-Type" => "application/json"},
            :body     => options.to_json
          )
        end

      end

      class Mock

        def create_image(options = {})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
fog-0.5.1 lib/fog/compute/requests/brightbox/create_image.rb
fog-0.5.0 lib/fog/compute/requests/brightbox/create_image.rb
phpfog-fog-0.4.1.3 lib/fog/compute/requests/brightbox/create_image.rb
phpfog-fog-0.4.1.2 lib/fog/compute/requests/brightbox/create_image.rb
phpfog-fog-0.4.1.1 lib/fog/compute/requests/brightbox/create_image.rb
phpfog-fog-0.4.1 lib/fog/compute/requests/brightbox/create_image.rb
fog-0.4.1 lib/fog/compute/requests/brightbox/create_image.rb
fog-0.4.0 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.34 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.33 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.32 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.31 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.30 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.29 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.28 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.27 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.26 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.25 lib/fog/brightbox/requests/compute/create_image.rb
fog-0.3.24 lib/fog/brightbox/requests/compute/create_image.rb
bbcloud-0.8.1 lib/bbcloud/vendor/fog-0.3.23/lib/fog/brightbox/requests/compute/create_image.rb