Module: Anemone::CLI
- Defined in:
- lib/anemone/cli.rb
Constant Summary collapse
- COMMANDS =
%w[count cron pagedepth serialize url-list]
Class Method Summary collapse
Class Method Details
.run ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/anemone/cli.rb', line 5 def self.run command = ARGV.shift if COMMANDS.include? command load "anemone/cli/#{command.tr('-', '_')}.rb" else puts "Anemone is a web spider framework that can collect\nuseful information about pages it visits.\n\nUsage:\n anemone <command> [arguments]\n\nCommands:\n \#{COMMANDS.join(', ')}\n" end end |