Class: Repol::Client

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

Instance Method Summary collapse

Methods included from Logger::Helper

#log

Methods included from Utils::Helper

#diff, #matched?

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



5
6
7
8
9
10
# File 'lib/repol/client.rb', line 5

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

Instance Method Details

#apply(file) ⇒ Object



16
17
18
# File 'lib/repol/client.rb', line 16

def apply(file)
  walk(file)
end

#exportObject



12
13
14
# File 'lib/repol/client.rb', line 12

def export
  @exporter.export
end