Class: Servitor::BundleDeployer
- Inherits:
-
Object
- Object
- Servitor::BundleDeployer
- Defined in:
- lib/deployment/bundle_deployer.rb
Instance Attribute Summary collapse
-
#box ⇒ Object
readonly
Returns the value of attribute box.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #deploy ⇒ Object
-
#initialize(box, path) ⇒ BundleDeployer
constructor
A new instance of BundleDeployer.
Constructor Details
#initialize(box, path) ⇒ BundleDeployer
Returns a new instance of BundleDeployer.
5 6 7 8 |
# File 'lib/deployment/bundle_deployer.rb', line 5 def initialize(box, path) @box = box @path = path end |
Instance Attribute Details
#box ⇒ Object (readonly)
Returns the value of attribute box.
3 4 5 |
# File 'lib/deployment/bundle_deployer.rb', line 3 def box @box end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/deployment/bundle_deployer.rb', line 3 def path @path end |
Instance Method Details
#deploy ⇒ Object
10 11 12 |
# File 'lib/deployment/bundle_deployer.rb', line 10 def deploy box.ssh("cd '#{path}'; bundle") end |