Sha256: c7acff82a0f8617ce8f4e2873c3e3dacc005e463d260ce9587113895953c04b5

Contents?: true

Size: 762 Bytes

Versions: 45

Compression:

Stored size: 762 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 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
      end
    end
  end
end

Version data entries

45 entries across 43 versions & 5 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.1.2 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-fork-99 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.1.0 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.1.0.pre lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.0.11 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.0.10 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-1.0.9 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-0.1.31 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.3.10 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-1.0.8 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-0.1.30 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-1.0.7 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-0.1.29 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-0.3.9 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-1.0.6 lib/fog/openstack/planning/requests/get_plan_templates.rb
fog-openstack-0.1.28 lib/fog/planning/openstack/requests/get_plan_templates.rb
fog-openstack-1.0.5 lib/fog/openstack/planning/requests/get_plan_templates.rb