/usr/lib/ruby/vendor_ruby/mercenary.rb is in ruby-mercenary 0.3.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | lib = File.expand_path('../', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "mercenary/version"
require "optparse"
require "logger"
module Mercenary
autoload :Command, "mercenary/command"
autoload :Option, "mercenary/option"
autoload :Presenter, "mercenary/presenter"
autoload :Program, "mercenary/program"
# Public: Instantiate a new program and execute.
#
# name - the name of your program
#
# Returns nothing.
def self.program(name)
program = Program.new(name)
yield program
program.go(ARGV)
end
end
|