Sha256: e103dccdb0704c6eba48f1af0c62d1f631ffcea103cf78efb06471217c7428f2

Contents?: true

Size: 773 Bytes

Versions: 24

Compression:

Stored size: 773 Bytes

Contents

require 'fog/rackspace/models/orchestration/template'

module Fog
  module Rackspace
    class Orchestration
      class Templates < Fog::Collection
        model Fog::Rackspace::Orchestration::Template

        def get(obj)
          data = if obj.is_a?(Stack)
            service.get_stack_template(obj).body
          else
            service.show_resource_template(obj.resource_name).body
          end

          new(data)
        rescue Fog::Rackspace::Orchestration::NotFound
          nil
        end

        def validate(options={})
          data = service.validate_template(options).body
          temp = new
          temp.parameters  = data['Parameters']
          temp.description = data['Description']
          temp
        end
      end
    end
  end
end

Version data entries

24 entries across 22 versions & 4 rubygems

Version Path
fog-rackspace-0.1.6 lib/fog/rackspace/models/orchestration/templates.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/templates.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/templates.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.5 lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.4 lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.3 lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.2 lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.1 lib/fog/rackspace/models/orchestration/templates.rb
fog-rackspace-0.1.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.37.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.36.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.35.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-2.0.0.pre.0 lib/fog/rackspace/models/orchestration/templates.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/rackspace/models/orchestration/templates.rb
fog-1.34.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.33.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.32.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.31.0 lib/fog/rackspace/models/orchestration/templates.rb
fog-1.30.0 lib/fog/rackspace/models/orchestration/templates.rb