Class: Ognivo::Upload
- Inherits:
-
Object
- Object
- Ognivo::Upload
- Includes:
- CLIHelpers
- Defined in:
- lib/ognivo/upload.rb
Constant Summary collapse
- OPTIONS =
[:access_key_id, :secret_access_key, :bucket_name, :appcast_name, :app_filename, :dsa_filename, :version]
Instance Method Summary collapse
- #init_appcast ⇒ Object
-
#initialize(opts = {}) ⇒ Upload
constructor
A new instance of Upload.
- #upload ⇒ Object
Methods included from CLIHelpers
Constructor Details
#initialize(opts = {}) ⇒ Upload
Returns a new instance of Upload.
10 11 12 |
# File 'lib/ognivo/upload.rb', line 10 def initialize(opts = {}) OPTIONS.each { |v| instance_variable_set("@#{v}", opts[v]) } end |
Instance Method Details
#init_appcast ⇒ Object
28 29 30 31 |
# File 'lib/ognivo/upload.rb', line 28 def init_appcast ensure_bucket create_cast end |
#upload ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ognivo/upload.rb', line 14 def upload ensure_appfile ensure_bucket ensure_appcast item = create_item upload_build say_ok 'Build has been uploaded to S3' add_item_to_app_cast(item) say_ok 'Appcast succesfully updated' end |