Module: Jackie
- Defined in:
- lib/jackie.rb,
lib/jackie/app.rb,
lib/jackie/base.rb,
lib/jackie/version.rb,
lib/jackie/aws_uploader.rb
Defined Under Namespace
Classes: AWSUploader, App, Base, Version
Class Method Summary collapse
- .api_key=(api_key) ⇒ Object
-
.configure_s3(connection_params, access_params) ⇒ Object
So, it should be straightforward to add support for ftp or dropbox or whatever.
Class Method Details
.api_key=(api_key) ⇒ Object
9 10 11 |
# File 'lib/jackie.rb', line 9 def self.api_key=(api_key) Jackie::Base.api_key = api_key end |
.configure_s3(connection_params, access_params) ⇒ Object
So, it should be straightforward to add support for ftp or dropbox or whatever. By creating a uploader (with the public api of AWSUploader) and calling set_uploader with it
15 16 17 |
# File 'lib/jackie.rb', line 15 def self.configure_s3(connection_params, access_params) Jackie::Version.set_uploader(Jackie::AWSUploader.new(connection_params, access_params)) end |