Class: Caravan::DeployMethods::Shell
Instance Attribute Summary
#debug, #dst, #src
Instance Method Summary
collapse
#after_change, #handle_change, #initialize, #relative_path
Instance Method Details
#after_create ⇒ Object
4
5
6
7
8
|
# File 'lib/caravan/deploy_methods/shell.rb', line 4
def after_create
super do
Caravan::Message.info("Notice: Shell Deployer is like copy, mainly designed for test.")
end
end
|
#after_deploy ⇒ Object
22
23
24
25
26
|
# File 'lib/caravan/deploy_methods/shell.rb', line 22
def after_deploy
super do
Caravan::Message.info("Hook: after_deploy")
end
end
|
#before_deploy ⇒ Object
10
11
12
13
14
|
# File 'lib/caravan/deploy_methods/shell.rb', line 10
def before_deploy
super do
Caravan::Message.info("Hook: before_deploy")
end
end
|
#before_destroy ⇒ Object
28
29
30
31
32
|
# File 'lib/caravan/deploy_methods/shell.rb', line 28
def before_destroy
super do
Caravan::Message.info("Deployer destroyed")
end
end
|
#run ⇒ Object
16
17
18
19
20
|
# File 'lib/caravan/deploy_methods/shell.rb', line 16
def run
super do |s, d|
Caravan::Command.run("cp -r #{s} #{d}", @debug)
end
end
|