capistrano-eye 0.0.4 → 0.0.5
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 +4 -4
- data/README.md +1 -1
- data/lib/capistrano/eye/version.rb +1 -1
- data/lib/capistrano/tasks/eye.cap +20 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2f1485fa7bf8787a73b22b022b1c0f87889858
|
4
|
+
data.tar.gz: 6bc587bd7c9a4aa51b85ac919141794accaea563
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50cb3903643d7a5aa5a0f223d55307e915245510d2bb19e7fde08f6ea7e8b4f53b592ddb8125fb06d3d87388bbf9d15764465a52dbf206c4ac32a428742b1a3a
|
7
|
+
data.tar.gz: 1d857f7e14348b4f47ea6a141de7a99ccce30841b343d030a70cefe952a2fafc37b6cda1c6ddec604b3567d166a097923af50652ddaa6d6499127046d2990198
|
data/README.md
CHANGED
@@ -24,7 +24,7 @@ Add this line to your `Capfile` and `deploy:restart` will be setup to automatica
|
|
24
24
|
require 'capistrano/eye'
|
25
25
|
```
|
26
26
|
|
27
|
-
The following tasks are available: `eye:load`, `eye:start`, `eye:stop`, `eye:restart`, `eye:info`
|
27
|
+
The following tasks are available: `eye:load`, `eye:start`, `eye:stop`, `eye:quit`, `eye:restart`, `eye:info`
|
28
28
|
|
29
29
|
If you want the task to run at a different point in your deployment, require `capistrano/eye/no_hook` instead of `capistrano/eye` and then add your own hook in `config/deploy.rb`.
|
30
30
|
|
@@ -10,7 +10,7 @@ namespace :eye do
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
|
13
|
+
[:start, :stop, :restart].each do |cmd|
|
14
14
|
desc "Run 'eye #{cmd}'"
|
15
15
|
task cmd do
|
16
16
|
on roles(fetch(:eye_roles)) do
|
@@ -35,6 +35,17 @@ namespace :eye do
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
task :quit do
|
39
|
+
desc 'Quit eye'
|
40
|
+
on roles(fetch(:eye_roles)) do |server|
|
41
|
+
with fetch(:eye_env) do
|
42
|
+
within(release_path) do
|
43
|
+
execute :eye, :quit
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
38
49
|
before :start, :load
|
39
50
|
before :restart, :load
|
40
51
|
end
|
@@ -42,8 +53,15 @@ end
|
|
42
53
|
namespace :load do
|
43
54
|
task :defaults do
|
44
55
|
set :eye_roles, :app
|
45
|
-
set :eye_env, -> { { rails_env: fetch(:stage) } }
|
56
|
+
set :eye_env, -> { { rails_env: fetch(:rails_env) || fetch(:stage) } }
|
46
57
|
set :eye_application, -> { fetch(:application) }
|
47
58
|
set :eye_config, -> { "./config/#{fetch(:application)}.eye" }
|
59
|
+
|
60
|
+
# Rbenv, Chruby, and RVM integration
|
61
|
+
set :rbenv_map_bins, fetch(:rbenv_map_bins).to_a << 'eye'
|
62
|
+
set :rvm_map_bins, fetch(:rvm_map_bins).to_a << 'eye'
|
63
|
+
set :chruby_map_bins, fetch(:chruby_map_bins).to_a << 'eye'
|
64
|
+
# Bundler integration
|
65
|
+
set :bundle_bins, fetch(:bundle_bins).to_a << 'eye' if defined?(Eye)
|
48
66
|
end
|
49
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-eye
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Sergeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.5.1
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: Capistrano eye tasks
|