Sha256: 05463848cbf40d0728d4909c3d89497d51298da9b2856eb5e6e98c25f2b04620
Contents?: true
Size: 449 Bytes
Versions: 9
Compression:
Stored size: 449 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') def usage puts "usage: wurfltools.rb command options" path = "#{File.dirname(__FILE__)}/../lib/wurfl/command/*" a = Dir.glob(path).map {|s| File.basename(s,".rb")} puts "available commands:" puts a exit end usage if ARGV.size < 1 command = ARGV.shift require "wurfl/command/#{command}" c = Wurfl::Command.const_get(command.capitalize).new c.execute
Version data entries
9 entries across 9 versions & 1 rubygems