lib/travis/cli/command.rb in travis-1.5.9.travis.360.4 vs lib/travis/cli/command.rb in travis-1.5.9.travis.361.4
- old
+ new
@@ -316,9 +316,13 @@
wrong_args("few") unless args.shift or type == :opt or type == :block
end
wrong_args("many") if args.any?
end
+ def danger_zone?(message)
+ agree(color("DANGER ZONE: ", [:red, :bold]) << message << " ") { |q| q.default = "no" }
+ end
+
def wrong_args(quantity)
error "too #{quantity} arguments" do
say help
end
end