Module: DenkoCLI::Helper
Instance Method Summary collapse
Instance Method Details
#error(message, help = :usage) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/denko_cli/helper.rb', line 2 def error(, help=:usage) $stderr.puts $stderr.puts "Error: #{}" $stderr.puts usage if help == :usage targets if help == :targets end |
#missing_files ⇒ Object
24 25 26 27 28 |
# File 'lib/denko_cli/helper.rb', line 24 def missing_files text = File.read(File.join(@options[:cli_dir], "missing_files.txt")) $stderr.print text $stderr.puts end |
#targets ⇒ Object
17 18 19 20 21 22 |
# File 'lib/denko_cli/helper.rb', line 17 def targets text = File.read(File.join(@options[:cli_dir], "targets.txt")) $stderr.print text $stderr.puts exit(2) end |
#usage ⇒ Object
10 11 12 13 14 15 |
# File 'lib/denko_cli/helper.rb', line 10 def usage text = File.read(File.join(@options[:cli_dir], "usage.txt")) $stderr.print text $stderr.puts exit(2) end |