Sha256: f39fc75813f6f0ead3a65a4cba6dc15cb6406ad35bbcf17f79442d4370958213

Contents?: true

Size: 736 Bytes

Versions: 10

Compression:

Stored size: 736 Bytes

Contents

module Terraforming
  module Resource
    class <%= camelize(resource) %>
      include Terraforming::Util

      # TODO: Select appropriate Client class from here:
      # http://docs.aws.amazon.com/sdkforruby/api/index.html
      def self.tf(client: Aws::SomeResource::Client.new)
        self.new(client).tf
      end

      # TODO: Select appropriate Client class from here:
      # http://docs.aws.amazon.com/sdkforruby/api/index.html
      def self.tfstate(client: Aws::SomeResource::Client.new)
        self.new(client).tfstate
      end

      def initialize(client)
        @client = client
      end

      def tf
        apply_template(@client, "tf/<%= resource %>")
      end

      def tfstate

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
terraforming-0.18.0 templates/resource.rb.erb
terraforming-0.17.0 templates/resource.rb.erb
terraforming-0.16.0 templates/resource.rb.erb
terraforming-0.15.0 templates/resource.rb.erb
aws-insight-0.14.1 templates/resource.rb.erb
aws-insight-0.14.0 templates/resource.rb.erb
terraforming-0.14.0 templates/resource.rb.erb
terraforming-0.13.2 templates/resource.rb.erb
terraforming-0.13.1 templates/resource.rb.erb
terraforming-0.13.0 templates/resource.rb.erb