Sha256: 5bf2452f708e2d93bf155304d5e1266da049e3dd9e02aff0fee8056c26a88c9a

Contents?: true

Size: 465 Bytes

Versions: 24

Compression:

Stored size: 465 Bytes

Contents

module Anemone
  module CLI
    COMMANDS = %w[count cron pagedepth serialize url-list]
    
    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
  end
end

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
sutch-anemone-0.7.2.2 lib/anemone/cli.rb
sutch-anemone-0.7.2.1 lib/anemone/cli.rb
sutch-anemone-0.7.2 lib/anemone/cli.rb
rodneyc-anemone-0.7.1.3 lib/anemone/cli.rb
rodneyc-anemone-0.7.1.2 lib/anemone/cli.rb
rodneyc-anemone-0.7.1.1 lib/anemone/cli.rb
anemone-0.7.2 lib/anemone/cli.rb
anemone-0.7.1 lib/anemone/cli.rb
anemone-0.7.0 lib/anemone/cli.rb
anemone-0.6.1 lib/anemone/cli.rb
anemone-0.6.0 lib/anemone/cli.rb
anemone-0.5.0 lib/anemone/cli.rb
spk-anemone-0.4.0 lib/anemone/cli.rb
anemone-0.4.0 lib/anemone/cli.rb
anemone-0.3.2 lib/anemone/cli.rb
spk-anemone-0.3.1 lib/anemone/cli.rb
anemone-0.3.1 lib/anemone/cli.rb
spk-anemone-0.3.0 lib/anemone/cli.rb
anemone-0.3.0 lib/anemone/cli.rb
spk-anemone-0.2.4 lib/anemone/cli.rb