Class: Repol::Client
- Inherits:
-
Object
- Object
- Repol::Client
- Includes:
- Logger::Helper, Utils::Helper
- Defined in:
- lib/repol/client.rb
Instance Method Summary collapse
- #apply(file) ⇒ Object
- #export ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Logger::Helper
Methods included from Utils::Helper
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 = @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 |
#export ⇒ Object
12 13 14 |
# File 'lib/repol/client.rb', line 12 def export @exporter.export end |