Sha256: 9ee1a394f8be71f4e8be96a6a15e4d931682020281b6474b923edaa04d9908bf
Contents?: true
Size: 895 Bytes
Versions: 1
Compression:
Stored size: 895 Bytes
Contents
require 'mixlib/cli' require 'spanx/logger' class Spanx::CLI::Disable < Spanx::CLI banner 'Usage: spanx disable [options]' description 'Disable IP blocking if enabled' option :config_file, :short => '-c CONFIG', :long => '--config CONFIG', :description => 'Path to config file (YML)', :required => true option :debug, :short => '-g', :long => '--debug', :description => 'Log to STDOUT status of execution and some time metrics', :boolean => true, :required => false, :default => false option :help, :short => "-h", :long => "--help", :description => "Show this message", :on => :tail, :boolean => true, :show_options => true, :exit => 0 def run(argv = ARGV) generate_config(argv) Spanx::IPChecker.disable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spanx-0.3.0 | lib/spanx/cli/disable.rb |