capistrano-devops 0.0.7 → 0.0.8

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: 3b71959eb455d504074a52cf4098a3eb31b113b0
4
- data.tar.gz: 178423ec413fc912f41e115a4b68312a5318754b
3
+ metadata.gz: a316400015eb22303aab35fa5256e3e2feeae61e
4
+ data.tar.gz: dc7e07708aa30dae0fc7d82e7b169bb15e0b9959
5
5
  SHA512:
6
- metadata.gz: 7a4fd559346c2ee230734820902335de7c2b92c6536a8ff6799e6de3f49d341f8f8148cf83526ed65a1c0beba78d4c7f0805d3a377a89a2c358062ac7c746fd0
7
- data.tar.gz: 63fca60883b8589ad16fcc601d541bb933fb6ff0a41333bf17b0212e8f4224b372b3271078f0e2cdcf3d4372a60951ea6c1e6fa9fb85d04e58038c42f60ff2c4
6
+ metadata.gz: 3f2b9abfb986af010215affea736c0d3bfd236aeb7c21f83af469998b2a3a22b6c52e6312239999f10f485e5a87eab2c8532843964a1f46c617be716d2d69d14
7
+ data.tar.gz: 815de6d062594ab6a4f2cb618e93c9339d1f1cfe516ab556d44ac0e393db0f6d9d56172635873ab3effbb99233a1c11fbb328f6ace9da14c85ebb9c6f734931e
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Devops
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -27,7 +27,9 @@ namespace :rainbows do
27
27
  task command do
28
28
  on roles(:app), in: :sequence, wait: 5 do
29
29
  command_string = "rainbows_#{fetch(:application)} #{command}"
30
- execute :service, command_string
30
+ as :root do
31
+ execute :service, command_string
32
+ end
31
33
  end
32
34
  end
33
35
  end
@@ -10,8 +10,8 @@ namespace :redis do
10
10
  %w[start stop restart].each do |command|
11
11
  desc "#{command} redis"
12
12
  task command do
13
- on roles(:app), in: :sequence, wait: 5 do
14
- command_string = "redis #{command}"
13
+ on roles(:db), in: :sequence, wait: 5 do
14
+ command_string = "redis-server #{command}"
15
15
  execute :service, command_string
16
16
  end
17
17
  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.7
4
+ version: 0.0.8
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-23 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano