Class: Bukelatta::Client
- Inherits:
-
Object
- Object
- Bukelatta::Client
- Includes:
- Logger::Helper, Utils::Helper
- Defined in:
- lib/bukelatta/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 11 |
# File 'lib/bukelatta/client.rb', line 5 def initialize( = {}) @options = @client = @options[:client] || Aws::S3::Client.new @resource = Aws::S3::Resource.new(client: @client) @driver = Bukelatta::Driver.new(@client, @options) @exporter = Bukelatta::Exporter.new(@client, @options) end |
Instance Method Details
#apply(file) ⇒ Object
17 18 19 |
# File 'lib/bukelatta/client.rb', line 17 def apply(file) walk(file) end |
#export ⇒ Object
13 14 15 |
# File 'lib/bukelatta/client.rb', line 13 def export @exporter.export end |