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 <<-INFO Anemone is a web spider framework that can collect useful information about pages it visits. Usage: anemone <command> [arguments] Commands: #{COMMANDS.join(', ')} INFO end end |