easy-deployment 0.4.3 → 0.4.4

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.
@@ -1,5 +1,5 @@
1
1
  module Easy
2
2
  module Deployment
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -11,12 +11,12 @@ Capistrano::Configuration.instance(:must_exist).load do
11
11
 
12
12
  namespace :niet do
13
13
  desc "Setup Niet"
14
- task :setup, roles: niet_roles do
14
+ task :setup, roles: lambda { niet_roles } do
15
15
  run "mkdir -p #{shared_path}/niet"
16
16
  end
17
17
 
18
18
  desc "Starts the niet process monitor and its jobs"
19
- task :start, roles: niet_roles do
19
+ task :start, roles: lambda { niet_roles } do
20
20
  if remote_file_exists?("#{shared_path}/niet")
21
21
  niet_process_count.times do |i|
22
22
  run "niet -p #{shared_path}/niet/jobs_worker_#{i}.pid -c #{current_path} bundle exec rake jobs:work RAILS_ENV=#{stage}"
@@ -27,7 +27,7 @@ Capistrano::Configuration.instance(:must_exist).load do
27
27
  end
28
28
 
29
29
  desc "Restarts the processes running under niet"
30
- task :restart, roles: niet_roles do
30
+ task :restart, roles: lambda { niet_roles } do
31
31
  if remote_file_exists?("#{shared_path}/niet")
32
32
  run "for job in #{shared_path}/niet/* ; do kill -TERM `cat $job`; done"
33
33
  else
@@ -36,12 +36,12 @@ Capistrano::Configuration.instance(:must_exist).load do
36
36
  end
37
37
 
38
38
  desc "Stops the processes running under niet and the niet process monitor"
39
- task :stop, roles: niet_roles do
39
+ task :stop, roles: lambda { niet_roles } do
40
40
  run "for job in #{shared_path}/niet/* ; do kill -QUIT `cat $job`; done"
41
41
  end
42
42
 
43
- desc "Diplays the status of the niet process monitor"
44
- task :status, roles: niet_roles do
43
+ desc "Displays the status of the niet process monitor"
44
+ task :status, roles: lambda { niet_roles } do
45
45
  run "for job in #{shared_path}/niet/* ; do ps -fw `cat $job`; done"
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-01-10 00:00:00.000000000 Z
15
+ date: 2013-01-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: 3147197610721835817
164
+ hash: -2565784837031824026
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: 3147197610721835817
173
+ hash: -2565784837031824026
174
174
  requirements: []
175
175
  rubyforge_project:
176
176
  rubygems_version: 1.8.24