capistrano-devops 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 219b1dbbcba111b09ffadcd4a5e9f3ae987b64c6
|
4
|
+
data.tar.gz: 53301e5c69548e41070bcf02cfa54e60edea4b5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a24e58690cce708f7ba128c9f6bd6d38434c40efceebafa3e5f7045cbf817a123024e4b21d76a1a3513761cd4415edea6b9169e1ed742807bba88a47f73dd53e
|
7
|
+
data.tar.gz: 8f7ed5f9b7154b23453eb12f9118229c1a5fae136ebc658e7eab3b840632729e0f29ec5fc95f375afffbd481e495588afaad5f4ac2846b108b11dd089cbfc4fa
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path("../../tasks/redis.rake", __FILE__)
|
@@ -3,6 +3,7 @@ set :rainbows_pid, ->{ "#{current_path}/tmp/pids/rainbows.pid" }
|
|
3
3
|
set :rainbows_config, ->{ "#{shared_path}/config/rainbows.rb" }
|
4
4
|
set :rainbows_log, ->{ "#{shared_path}/log/rainbows.log" }
|
5
5
|
set :rainbows_workers, 2
|
6
|
+
set :rainbows_timeout, 30
|
6
7
|
|
7
8
|
namespace :rainbows do
|
8
9
|
desc "Setup Rainbows initializer and app configuration"
|
@@ -24,7 +25,7 @@ namespace :rainbows do
|
|
24
25
|
%w[start stop restart].each do |command|
|
25
26
|
desc "#{command} rainbows"
|
26
27
|
task command do
|
27
|
-
on roles
|
28
|
+
on roles(:app), in: :sequence, wait: 5 do
|
28
29
|
command_string = "rainbows_#{fetch(:application)} #{command}"
|
29
30
|
execute :service, command_string
|
30
31
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
namespace :redis do
|
2
|
+
desc "Installs the Redis server"
|
3
|
+
task :install do
|
4
|
+
on roles :db do
|
5
|
+
execute :sudo, "apt-get -y update"
|
6
|
+
execute :sudo, "apt-get -y install redis-server"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
%w[start stop restart].each do |command|
|
11
|
+
desc "#{command} redis"
|
12
|
+
task command do
|
13
|
+
on roles(:app), in: :sequence, wait: 5 do
|
14
|
+
command_string = "redis #{command}"
|
15
|
+
execute :service, command_string
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-devops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tristan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/capistrano/devops/papertrail.rb
|
59
59
|
- lib/capistrano/devops/postgresql.rb
|
60
60
|
- lib/capistrano/devops/rainbows.rb
|
61
|
+
- lib/capistrano/devops/redis.rb
|
61
62
|
- lib/capistrano/devops/ssh.rb
|
62
63
|
- lib/capistrano/devops/templates/nginx_rainbows.erb
|
63
64
|
- lib/capistrano/devops/templates/rainbows.erb
|
@@ -68,6 +69,7 @@ files:
|
|
68
69
|
- lib/capistrano/tasks/papertrail.rake
|
69
70
|
- lib/capistrano/tasks/postgresql.rake
|
70
71
|
- lib/capistrano/tasks/rainbows.rake
|
72
|
+
- lib/capistrano/tasks/redis.rake
|
71
73
|
- lib/capistrano/tasks/set_rails_env.rake
|
72
74
|
- lib/capistrano/tasks/ssh.rake
|
73
75
|
- lib/capistrano/tasks/utilities.rake
|