guard-passenger 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/passenger.rb +11 -4
- data/lib/guard/passenger/version.rb +1 -1
- metadata +3 -3
data/lib/guard/passenger.rb
CHANGED
@@ -10,7 +10,7 @@ module Guard
|
|
10
10
|
|
11
11
|
# Call once when guard starts
|
12
12
|
def start
|
13
|
-
|
13
|
+
UI.info "Guard::Passenger is guarding your changes!"
|
14
14
|
end
|
15
15
|
|
16
16
|
# Call with Ctrl-C signal (when Guard quit)
|
@@ -34,9 +34,16 @@ module Guard
|
|
34
34
|
end
|
35
35
|
|
36
36
|
private
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
def restart_passenger
|
38
|
+
result = system 'touch tmp/restart.txt'
|
39
|
+
if result
|
40
|
+
UI.info 'Successfully restarted passenger'
|
41
|
+
else
|
42
|
+
UI.info 'Restarting passenger failed'
|
43
|
+
end
|
44
|
+
|
45
|
+
result
|
46
|
+
end
|
40
47
|
|
41
48
|
end
|
42
49
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-passenger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Fabio Kuhn
|