Sha256: 5947455ddff687baafd8fd8251bcb9ddeb9f81e14eadf82e46ff26662e9a1398

Contents?: true

Size: 699 Bytes

Versions: 36

Compression:

Stored size: 699 Bytes

Contents

module Fog
  module Bluebox
    class Real

      # Get list of OS templates
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Array>:
      #     * 'id'<~String> - UUID of the image
      #     * 'description'<~String> - Description of the image
      #     * 'public'<~Boolean> - Public / Private image
      #     * 'created'<~Datetime> - Timestamp of when the image was created
      def get_templates
        request(
          :expects  => 200,
          :method   => 'GET',
          :path     => 'api/block_templates.json'
        )
      end

    end

    class Mock

      def get_templates
        Fog::Mock.not_implemented
      end

    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
fog-0.2.10 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.9 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.8 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.7 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.6 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.5 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.4 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.3 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.2 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.1 lib/fog/bluebox/requests/get_templates.rb
fog-0.2.0 lib/fog/bluebox/requests/get_templates.rb
fog-0.1.10 lib/fog/bluebox/requests/get_templates.rb
fog-0.1.9 lib/fog/bluebox/requests/get_templates.rb
fog-0.1.8 lib/fog/bluebox/requests/get_templates.rb
fog-0.1.7 lib/fog/bluebox/requests/get_templates.rb
fog-0.1.6 lib/fog/bluebox/requests/get_templates.rb