Sha256: e98970c5e64bbd4e8a2ae1e39216ea45b4caa04a3bf9f8e0330b4211508c595d

Contents?: true

Size: 862 Bytes

Versions: 14

Compression:

Stored size: 862 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(2)]
          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

14 entries across 14 versions & 1 rubygems

Version Path
fog-openstack-0.1.25 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.24 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.23 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.22 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.21 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.20 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.19 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.18 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.17 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.15 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.14 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.13 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.12 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.1.11 lib/fog/planning/openstack/requests/get_plan_templates.rb