Class: Bard::DeployStrategy::SSH
- Inherits:
-
Bard::DeployStrategy
- Object
- Bard::DeployStrategy
- Bard::DeployStrategy::SSH
- Defined in:
- lib/bard/deploy_strategy/ssh.rb
Instance Attribute Summary
Attributes inherited from Bard::DeployStrategy
Instance Method Summary collapse
Methods inherited from Bard::DeployStrategy
[], inherited, #initialize, #run, #run!, #system!
Constructor Details
This class inherits a constructor from Bard::DeployStrategy
Instance Method Details
#deploy ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/bard/deploy_strategy/ssh.rb', line 6 def deploy # Require SSH capability target.require_capability!(:ssh) # Determine branch branch = target.instance_variable_get(:@branch) || "master" # Run git pull and setup on remote server target.run! "git pull origin #{branch}" target.run! "bin/setup" end |