Method: EXEL.configure
- Defined in:
- lib/exel.rb
.configure {|configuration| ... } ⇒ Object
Yields the configuration object to the given block. Configuration can include:
-
async_provider
Set an async provider. Defaults to EXEL::Providers::ThreadedAsyncProvider -
remote_provider
Set a remote provider. Defaults to EXEL::Providers::LocalFileProvider -
Any configuration required by the async/remote providers
Typically, async_provider and remote_provider will be automatically set upon requiring those gems.
Example:
EXEL.configure do |config|
config.s3_bucket = 'my_bucket'
end
36 37 38 |
# File 'lib/exel.rb', line 36 def self.configure yield configuration end |