eye-patch 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eye/patch/capistrano.rb +5 -3
- data/lib/eye/patch/capistrano3.rb +4 -4
- data/lib/eye/patch/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa3f944d90fb6e80960b4b9202c30c488fc3ac4c
|
4
|
+
data.tar.gz: 47d532b023bbce9d8142fd15b264e150fd2ef727
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab0cb2cf3183db6ef3c134b15f397f474c486fd73bf0db989b9b658b408091731e6a1cca0cd171a42eb6e8962f66a00e1d428d9d38453674a451a518ca949547
|
7
|
+
data.tar.gz: feb56def454753b2b848d7fb42d73e31da936d2ee42fd94efc354451d3846056ea809a5f03c7bde3adb276a3e855e8ebe5fe33a415793399ebecaa8f307eede5
|
data/lib/eye/patch/capistrano.rb
CHANGED
@@ -15,17 +15,19 @@ Capistrano::Configuration.instance.load do
|
|
15
15
|
|
16
16
|
desc "Start eye with the desired configuration file"
|
17
17
|
task :load_config, roles: -> { fetch(:eye_roles) } do
|
18
|
-
run "cd #{current_path} && #{fetch(:eye_bin)}
|
18
|
+
run "cd #{current_path} && #{fetch(:eye_bin)} quit"
|
19
|
+
run "cd #{current_path} && #{fetch(:eye_bin)} load #{fetch(:eye_config)}"
|
19
20
|
end
|
20
21
|
|
21
22
|
desc "Stop eye and all of its monitored tasks"
|
22
23
|
task :stop, roles: -> { fetch(:eye_roles) } do
|
23
|
-
run "cd #{current_path} && #{fetch(:eye_bin)} stop all
|
24
|
+
run "cd #{current_path} && #{fetch(:eye_bin)} stop all"
|
25
|
+
run "cd #{current_path} && #{fetch(:eye_bin)} quit"
|
24
26
|
end
|
25
27
|
|
26
28
|
desc "Restart all tasks monitored by eye"
|
27
29
|
task :restart, roles: -> { fetch(:eye_roles) } do
|
28
|
-
run "cd #{current_path} && #{fetch(:eye_bin)}
|
30
|
+
run "cd #{current_path} && #{fetch(:eye_bin)} restart all"
|
29
31
|
end
|
30
32
|
end
|
31
33
|
|
@@ -19,8 +19,8 @@ namespace :eye do
|
|
19
19
|
on roles(fetch(:eye_roles)) do
|
20
20
|
within current_path do
|
21
21
|
with fetch(:eye_env) do
|
22
|
-
execute fetch(:eye_bin), "
|
23
|
-
execute fetch(:eye_bin), "
|
22
|
+
execute fetch(:eye_bin), "quit"
|
23
|
+
execute fetch(:eye_bin), "load #{fetch(:eye_config)}"
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -32,7 +32,7 @@ namespace :eye do
|
|
32
32
|
within current_path do
|
33
33
|
with fetch(:eye_env) do
|
34
34
|
execute fetch(:eye_bin), "stop all"
|
35
|
-
execute fetch(:eye_bin), "
|
35
|
+
execute fetch(:eye_bin), "quit"
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -43,7 +43,7 @@ namespace :eye do
|
|
43
43
|
on roles(fetch(:eye_roles)) do
|
44
44
|
within current_path do
|
45
45
|
with fetch(:eye_env) do
|
46
|
-
execute fetch(:eye_bin), "
|
46
|
+
execute fetch(:eye_bin), "restart all"
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
data/lib/eye/patch/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eye-patch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Horner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eye
|