Class: Caravan::DeployMethods::Shell

Inherits:
Caravan::Deploy::Base show all
Defined in:
lib/caravan/deploy_methods/shell.rb

Instance Attribute Summary

Attributes inherited from Caravan::Deploy::Base

#debug, #dst, #src

Instance Method Summary collapse

Methods inherited from Caravan::Deploy::Base

#after_change, #handle_change, #initialize, #relative_path

Constructor Details

This class inherits a constructor from Caravan::Deploy::Base

Instance Method Details

#after_createObject



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_deployObject



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_deployObject



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_destroyObject



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

#runObject



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