Class: EySecrets::Update
- Inherits:
-
Struct
- Object
- Struct
- EySecrets::Update
- Includes:
- CompositeCommandBuilder
- Defined in:
- lib/ey_secrets/actions/update.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#options ⇒ Object
Returns the value of attribute options.
-
#repository ⇒ Object
Returns the value of attribute repository.
Instance Method Summary collapse
Methods included from CompositeCommandBuilder
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application
2 3 4 |
# File 'lib/ey_secrets/actions/update.rb', line 2 def application @application end |
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/ey_secrets/actions/update.rb', line 2 def @options end |
#repository ⇒ Object
Returns the value of attribute repository
2 3 4 |
# File 'lib/ey_secrets/actions/update.rb', line 2 def repository @repository end |
Instance Method Details
#build ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ey_secrets/actions/update.rb', line 5 def build repository.assert_ready_for_update InstanceResolver.find!(application, .merge(remotes: repository.remotes)).each do |instance| action CopyFiles.new(instance, repository, ) action Restart.new(instance, ) end end |