Sha256: f73d12c6e0ee60f09b22def1278acbda95c19a02a032ec6519fb4c24ba48e82c

Contents?: true

Size: 840 Bytes

Versions: 22

Compression:

Stored size: 840 Bytes

Contents

module Fog
  module Openstack
    class Planning
      class Real
        def get_plan_templates(plan_uuid)
          request(
            :expects => [200, 204],
            :method  => 'GET',
            :path    => "plans/#{plan_uuid}/templates"
          )
        end
      end # class Real

      class Mock
        def get_plan_templates(plan_uuid)
          response = Excon::Response.new
          response.status = [200, 204][rand(1)]
          response.body = {
            "environment.yaml" => "... content of template file ...",
            "plan.yaml" => "... content of template file ...",
            "provider-compute-1.yaml" => "... content of template file ..."
          }
          response
        end # def get_plan_templates
      end # class Mock
    end # class Planning
  end # module Openstack
end # module Fog

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
fog-1.30.0 lib/fog/openstack/requests/planning/get_plan_templates.rb
fog-1.29.0 lib/fog/openstack/requests/planning/get_plan_templates.rb