Class: Servitor::BundleDeployer

Inherits:
Object
  • Object
show all
Defined in:
lib/deployment/bundle_deployer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#boxObject (readonly)

Returns the value of attribute box.



3
4
5
# File 'lib/deployment/bundle_deployer.rb', line 3

def box
  @box
end

#pathObject (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

#deployObject



10
11
12
# File 'lib/deployment/bundle_deployer.rb', line 10

def deploy
  box.ssh("cd '#{path}'; bundle")
end