Class: Dolphin::Deploy
- Inherits:
-
Base
- Object
- Thor
- Base
- Dolphin::Deploy
show all
- Defined in:
- lib/dolphin/deploy.rb
Overview
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Dolphin::Base
Instance Method Details
#bundle ⇒ Object
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/dolphin/deploy.rb', line 5
def bundle
= [
"
cd #{@deploy_dir}
sudo bundle install --quiet
",
]
execute
end
|
#go ⇒ Object
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/dolphin/deploy.rb', line 17
def go
invoke "dolphin:lock:check"
invoke "dolphin:lock:create"
invoke "dolphin:git:update"
bundle
invoke "dolphin:puma:restart"
invoke "dolphin:lock:release"
end
|
#newrelic ⇒ Object
69
70
71
72
73
74
75
76
77
|
# File 'lib/dolphin/deploy.rb', line 69
def newrelic
= [
"
sudo /etc/init.d/newrelic-sysmond start
",
]
execute
end
|
#rollback(tag = nil) ⇒ Object
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/dolphin/deploy.rb', line 37
def rollback(tag=nil)
invoke "dolphin:lock:check", []
invoke "dolphin:lock:create", []
invoke "dolphin:git:checkout"
invoke "dolphin:puma:restart", []
invoke "dolphin:lock:release", []
end
|
#try ⇒ Object
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/dolphin/deploy.rb', line 54
def try
= [
"
cd #{@deploy_dir}
pwd
chruby
which bundle
bundle check
",
]
execute
end
|