Class: Acmaker::Client

Inherits:
Object
  • Object
show all
Includes:
Logger::Helper, Utils::Helper
Defined in:
lib/acmaker/client.rb

Instance Method Summary collapse

Methods included from Utils::Helper

#diff, #matched?

Methods included from Logger::Helper

#log

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



6
7
8
9
10
11
# File 'lib/acmaker/client.rb', line 6

def initialize(options = {})
  @options = options
  @client = @options[:client] || Aws::ACM::Client.new
  @driver = Acmaker::Driver.new(@client, @options)
  @exporter = Acmaker::Exporter.new(@client, @options)
end

Instance Method Details

#apply(file) ⇒ Object



17
18
19
# File 'lib/acmaker/client.rb', line 17

def apply(file)
  walk(file)
end

#exportObject



13
14
15
# File 'lib/acmaker/client.rb', line 13

def export
  @exporter.export
end