Class: Terraspace::Cloud::Upload::Base
- Inherits:
-
Base
- Object
- Terraspace::CLI::Base
- Base
- Terraspace::Cloud::Upload::Base
- Defined in:
- lib/terraspace/cloud/upload/base.rb
Instance Method Summary collapse
- #artifacts_path ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
-
#zip_path ⇒ Object
final zip dest.
Methods inherited from Base
#cancelled?, #changes?, #clean_cache2_stage, #cloud_upload, #record?, #sh, #stage_attrs, #success_status
Methods included from Util::Pretty
Methods included from Util::Sure
Methods included from Util::Logging
Methods included from Context
Methods included from Api::Validate
Methods included from Api::Concern
#api, #cloud_stack_name, #expander, #region
Methods included from Api::Concern::Errors
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
3 4 5 6 |
# File 'lib/terraspace/cloud/upload/base.rb', line 3 def initialize(={}) super @type = [:type] end |
Instance Method Details
#artifacts_path ⇒ Object
13 14 15 |
# File 'lib/terraspace/cloud/upload/base.rb', line 13 def artifacts_path "#{@mod.cache_dir}/.terraspace-cache/.cache2/artifacts/#{@type}" end |
#zip_path ⇒ Object
final zip dest
9 10 11 |
# File 'lib/terraspace/cloud/upload/base.rb', line 9 def zip_path "#{artifacts_path}.zip" end |