Class: Zanzibar::Actions::Bundle
- Defined in:
- lib/zanzibar/actions/bundle.rb
Overview
Download or verify the secrets in a Zanzifile
Instance Attribute Summary collapse
-
#local_secrets ⇒ Object
Returns the value of attribute local_secrets.
-
#remote_secrets ⇒ Object
Returns the value of attribute remote_secrets.
-
#settings ⇒ Object
Returns the value of attribute settings.
-
#update ⇒ Object
Returns the value of attribute update.
-
#zanzibar ⇒ Object
writeonly
Sets the attribute zanzibar.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(ui, options, args = {}) ⇒ Bundle
constructor
A new instance of Bundle.
- #run ⇒ Object
Constructor Details
#initialize(ui, options, args = {}) ⇒ Bundle
15 16 17 18 |
# File 'lib/zanzibar/actions/bundle.rb', line 15 def initialize(ui, , args = {}) super(ui, ) @update = args[:update] end |
Instance Attribute Details
#local_secrets ⇒ Object
Returns the value of attribute local_secrets.
11 12 13 |
# File 'lib/zanzibar/actions/bundle.rb', line 11 def local_secrets @local_secrets end |
#remote_secrets ⇒ Object
Returns the value of attribute remote_secrets.
10 11 12 |
# File 'lib/zanzibar/actions/bundle.rb', line 10 def remote_secrets @remote_secrets end |
#settings ⇒ Object
Returns the value of attribute settings.
9 10 11 |
# File 'lib/zanzibar/actions/bundle.rb', line 9 def settings @settings end |
#update ⇒ Object
Returns the value of attribute update.
12 13 14 |
# File 'lib/zanzibar/actions/bundle.rb', line 12 def update @update end |
#zanzibar=(value) ⇒ Object
Sets the attribute zanzibar
13 14 15 |
# File 'lib/zanzibar/actions/bundle.rb', line 13 def (value) = value end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 |
# File 'lib/zanzibar/actions/bundle.rb', line 20 def run ensure_zanzifile load_required_secrets ensure_secrets_path validate_environment load_resolved_secrets if resolved_file? validate_local_secrets unless @update run! end |