Sha256: 802fa6a2a9ff9068e5c252d79bfac05ea7dc14425ae1dcde0b904286c796d96a

Contents?: true

Size: 752 Bytes

Versions: 9

Compression:

Stored size: 752 Bytes

Contents

module PracticeTerraforming
  module Resource
    class <%= camelize(resource) %>
      include PracticeTerraforming::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

9 entries across 9 versions & 1 rubygems

Version Path
practice_terraforming-0.1.11 templates/resource.rb.erb
practice_terraforming-0.1.10 templates/resource.rb.erb
practice_terraforming-0.1.9 templates/resource.rb.erb
practice_terraforming-0.1.8 templates/resource.rb.erb
practice_terraforming-0.1.7 templates/resource.rb.erb
practice_terraforming-0.1.6 templates/resource.rb.erb
practice_terraforming-0.1.5 templates/resource.rb.erb
practice_terraforming-0.1.4 templates/resource.rb.erb
practice_terraforming-0.1.3 templates/resource.rb.erb