Class: Anvil::App::Deploy
- Inherits:
-
Struct
- Object
- Struct
- Anvil::App::Deploy
- Includes:
- ConfigurationReader
- Defined in:
- lib/anvil/app/deploy.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
Methods included from ConfigurationReader
#configuration_for, #configuration_for_app, #environment_for, #environment_for_app, #hosts, #user_for, #validate
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration
6 7 8 |
# File 'lib/anvil/app/deploy.rb', line 6 def configuration @configuration end |
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 |
# File 'lib/anvil/app/deploy.rb', line 8 def call branch = `git rev-parse --abbrev-ref HEAD`.strip hosts.each do |host| HostDeployer.new(configuration, host.to_s.strip, branch).call end end |