negroku 2.0.0 → 2.0.1
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/lib/negroku/helpers/watch.rb +7 -1
- data/lib/negroku/tasks/eye.rake +5 -3
- data/lib/negroku/templates/tasks/eye/_process.erb +10 -0
- data/lib/negroku/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5445de2282cc22a849488f9d12ee7a54df9732d
|
4
|
+
data.tar.gz: f867b8751ce934ef749f26aa5e2252e7ff6473b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 13f5280b4b6ccf3d3187bc054d261b93d21085bd30abc340efaff482b5f7ad4fd57e092a5ae0d06cf8ba48c6f4de0d7e21f6f88183d85340ee3eb04dcecf84d3
|
7
|
+
data.tar.gz: c392623316a041f1b062a0c6acdbf9f814a1052c83c56195b2fe6a0a49c127db2d549e1fd5573ef36d3e81c8b79970b4cb85ebe06d9f11e80aac6cab48728f78
|
@@ -1,7 +1,13 @@
|
|
1
1
|
def watch_process(name, options = {})
|
2
2
|
processes = fetch(:eye_watched_processes, {})
|
3
3
|
|
4
|
-
options[:
|
4
|
+
options[:name] ||= name
|
5
|
+
|
6
|
+
options[:template] ||= name.to_sym
|
7
|
+
|
8
|
+
if options[:template].kind_of?(Symbol)
|
9
|
+
options[:template] = "tasks/eye/_#{options[:template]}.erb"
|
10
|
+
end
|
5
11
|
|
6
12
|
processes[name] = options
|
7
13
|
|
data/lib/negroku/tasks/eye.rake
CHANGED
@@ -38,9 +38,11 @@ namespace :eye do
|
|
38
38
|
task cmd, [:mask] do |t, args|
|
39
39
|
on release_roles fetch(:eye_roles) do
|
40
40
|
within current_path do
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
mask = fetch(:application)
|
42
|
+
mask += ":#{args[:mask]}" if args[:mask]
|
43
|
+
execute :eye, cmd, mask
|
44
|
+
|
45
|
+
Rake::Task["eye:#{cmd}"].reenable
|
44
46
|
end
|
45
47
|
end
|
46
48
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
process "<%= options[:name] %>" do
|
2
|
+
start_timeout <%= options[:start_timeout] %>
|
3
|
+
stop_timeout <%= options[:stop_timeout] %>
|
4
|
+
restart_timeout <%= options[:restart_timeout] %>
|
5
|
+
|
6
|
+
pid_file "<%= options[:pid_file] %>"
|
7
|
+
start_command "<%= options[:start_command] %>"
|
8
|
+
stop_command "<%= options[:stop_command] %>"
|
9
|
+
end
|
10
|
+
|
data/lib/negroku/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: negroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Ignacio Donoso
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|
@@ -332,6 +332,7 @@ files:
|
|
332
332
|
- lib/negroku/templates/negroku/deploy.rb.erb
|
333
333
|
- lib/negroku/templates/negroku/stage.rb.erb
|
334
334
|
- lib/negroku/templates/tasks/eye/_delayed_job.erb
|
335
|
+
- lib/negroku/templates/tasks/eye/_process.erb
|
335
336
|
- lib/negroku/templates/tasks/eye/_unicorn.erb
|
336
337
|
- lib/negroku/templates/tasks/eye/application.eye.erb
|
337
338
|
- lib/negroku/templates/tasks/unicorn_rails.rb.erb
|