- $options["floodgate-history"] ||= File.join($topdir, "floodgate_history.yaml")
- $options["floodgate-history"] = File.expand_path($options["floodgate-history"], $topdir)
- unless is_writable_file? $options["floodgate-history"]
- usage
- $stderr.puts "Can not create the floodgate history file: %s" % [$options["floodgate-history"]]
- exit 6
- end
-end
-
-# See if the file is writable. The file will be created if it does not exist
-# yet.
-# Return true if the file is writable, otherwise false.
-#
-def is_writable_file?(file)
- begin
- open(file, "w") {|fh| }
- rescue
- return false
- end
- unless FileTest.file? file
- return false
+ if $options["floodgate-history"]
+ $stderr.puts "WARNING: --floodgate-history has been deprecated."
+ $options["floodgate-history"] = nil