gizzmo 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/gizzmo.gemspec +1 -1
- data/lib/gizzard/commands.rb +6 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/gizzmo.gemspec
CHANGED
data/lib/gizzard/commands.rb
CHANGED
@@ -78,13 +78,17 @@ module Gizzard
|
|
78
78
|
|
79
79
|
class ReloadCommand < Command
|
80
80
|
def run
|
81
|
-
|
82
|
-
if gets.chomp == "yes"
|
81
|
+
if global_options.force || ask
|
83
82
|
service.reload_forwardings
|
84
83
|
else
|
85
84
|
STDERR.puts "aborted"
|
86
85
|
end
|
87
86
|
end
|
87
|
+
|
88
|
+
def ask
|
89
|
+
puts "Are you sure? Reloading will affect production services immediately! (Type 'yes')"
|
90
|
+
gets.chomp == "yes"
|
91
|
+
end
|
88
92
|
end
|
89
93
|
|
90
94
|
class DeleteCommand < Command
|