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