gizzmo 0.2.0 → 0.2.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
data/gizzmo.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{gizzmo}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kyle Maxwell"]
@@ -78,13 +78,17 @@ module Gizzard
78
78
 
79
79
  class ReloadCommand < Command
80
80
  def run
81
- puts "Are you sure? Reloading will affect production services immediately! (Type 'yes')"
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 1
9
+ version: 0.2.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kyle Maxwell