capones_recipes 1.15.5 → 1.16.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/capones_recipes/tasks/bluepill.rb +44 -0
- data/lib/capones_recipes/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG
CHANGED
@@ -0,0 +1,44 @@
|
|
1
|
+
Capistrano::Configuration.instance.load do
|
2
|
+
namespace :deploy do
|
3
|
+
task :start, :roles => :app, :except => { :no_release => true } do
|
4
|
+
set :bluepill_app, "#{client}.#{domain}"
|
5
|
+
run "bluepill --no-privileged #{bluepill_app} start"
|
6
|
+
end
|
7
|
+
|
8
|
+
task :stop, :roles => :app, :except => { :no_release => true } do
|
9
|
+
set :bluepill_app, "#{client}.#{domain}"
|
10
|
+
run "bluepill --no-privileged #{bluepill_app} stop"
|
11
|
+
end
|
12
|
+
|
13
|
+
task :restart, :roles => :app, :except => { :no_release => true } do
|
14
|
+
set :bluepill_app, "#{client}.#{domain}"
|
15
|
+
run "bluepill --no-privileged #{bluepill_app} restart"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
before "deploy:setup", "bluepill:configure"
|
20
|
+
|
21
|
+
namespace :bluepill do
|
22
|
+
desc "Create bluepill recipe"
|
23
|
+
task :configure, :roles => [:app], :except => { :no_release => true } do
|
24
|
+
#{shared_path}
|
25
|
+
location = fetch(:template_dir, "config/deploy") + '/bluepill.rb.erb'
|
26
|
+
template = File.read(location)
|
27
|
+
config = ERB.new(template)
|
28
|
+
|
29
|
+
put config.result(binding), "#{shared_path}/config/bluepill.rb"
|
30
|
+
end
|
31
|
+
|
32
|
+
desc "Load bluepill recipe"
|
33
|
+
task :setup, :roles => [:app], :except => { :no_release => true } do
|
34
|
+
run "bluepill --no-privileged load #{shared_path}/config/bluepill.rb"
|
35
|
+
end
|
36
|
+
|
37
|
+
desc "Prints bluepills monitored processes statuses"
|
38
|
+
task :status, :roles => [:app] do
|
39
|
+
set :bluepill_app, "#{client}.#{domain}"
|
40
|
+
run "bluepill --no-privileged #{bluepill_app} status"
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capones_recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.16.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-01-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- lib/capones_recipes/tasks/airbrake/setup.rb
|
141
141
|
- lib/capones_recipes/tasks/airbrake/symlink.rb
|
142
142
|
- lib/capones_recipes/tasks/airbrake/templates/airbrake.rb
|
143
|
+
- lib/capones_recipes/tasks/bluepill.rb
|
143
144
|
- lib/capones_recipes/tasks/carrier_wave.rb
|
144
145
|
- lib/capones_recipes/tasks/database.rb
|
145
146
|
- lib/capones_recipes/tasks/database/mysql.rb
|