Sha256: f2eb00a5955cdf1bc4165f8ec2131c83c0eea4948a65830f2176dcc4b8748c08
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
require "active_support" module RoCommands $LOAD_PATH.unshift File.expand_path("../..", __FILE__) require "config/rorc" arg = ARGV.shift if arg require 'ro_commands/base' require "ro_commands/#{arg}" RoCommands.const_get(arg.camelize).start elsif arg.nil? lib = File.expand_path("../../lib", __FILE__) args = Dir["#{lib}/ro_commands/*"].map do |file| if file[/\.rb$/] File.basename(file.gsub /\.rb$/, '') end end def self.is_helper?(str) str.match(%r{version}) end puts "Usage:" args.compact.each do |arg| unless is_helper?(arg) puts " ro #{arg}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ro_commands-0.0.3 | bin/ro |
ro_commands-0.0.2 | bin/ro |
ro_commands-0.0.1 | bin/ro |