Class: Zanzibar::Actions::Bundle

Inherits:
Base
  • Object
show all
Defined in:
lib/zanzibar/actions/bundle.rb

Overview

Download or verify the secrets in a Zanzifile

Instance Attribute Summary collapse

Attributes inherited from Base

#logger, #options

Instance Method Summary collapse

Constructor Details

#initialize(ui, options, args = {}) ⇒ Bundle



15
16
17
18
# File 'lib/zanzibar/actions/bundle.rb', line 15

def initialize(ui, options, args = {})
  super(ui, options)
  @update = args[:update]
end

Instance Attribute Details

#local_secretsObject

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_secretsObject

Returns the value of attribute remote_secrets.



10
11
12
# File 'lib/zanzibar/actions/bundle.rb', line 10

def remote_secrets
  @remote_secrets
end

#settingsObject

Returns the value of attribute settings.



9
10
11
# File 'lib/zanzibar/actions/bundle.rb', line 9

def settings
  @settings
end

#updateObject

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 zanzibar=(value)
  @zanzibar = value
end

Instance Method Details

#runObject



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