ninja-deploy 1.0.1 → 1.0.2

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.
data/README.rdoc CHANGED
@@ -69,6 +69,18 @@ From Command-Line:
69
69
 
70
70
  cap production passenger:restart
71
71
 
72
+ === sudo_restart
73
+
74
+ Restarts Passenger using sudo.
75
+
76
+ As Callback:
77
+
78
+ after "deploy:update_code", "passenger:sudo_restart"
79
+
80
+ From Command-Line:
81
+
82
+ cap production passenger:sudo_restart
83
+
72
84
 
73
85
  == Sass Recipes
74
86
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.2
@@ -2,6 +2,11 @@ Capistrano::Configuration.instance(:must_exist).load do
2
2
  namespace :passenger do
3
3
  desc "Restart the passenger module to reload the application after deploying."
4
4
  task :restart, :roles => :app, :except => {:no_release => true} do
5
+ run "touch #{current_path}/tmp/restart.txt"
6
+ end
7
+
8
+ desc "Restart the passenger module to reload the application after deploying using sudo."
9
+ task :sudo_restart, :roles => :app, :except => {:no_release => true} do
5
10
  sudo "touch #{current_path}/tmp/restart.txt"
6
11
  end
7
12
  end
data/ninja-deploy.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ninja-deploy}
8
- s.version = "1.0.1"
8
+ s.version = "1.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ninja Loss"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ninja-deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 2
10
+ version: 1.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ninja Loss