Sha256: 1578b7d8af0d05a13df1c95cd2a52f570f3e2bbdfb6e38fc800ee940fa6e116f
Contents?: true
Size: 803 Bytes
Versions: 10
Compression:
Stored size: 803 Bytes
Contents
# tap console {options} # # Opens up an IRB session with Tap initialized to the configurations # in tap.yml. Access the Tap::App.instance through 'app'. # # handle options # OptionParser.new do |opts| opts.separator "" opts.separator "options:" opts.on("-h", "--help", "Show this message") do opts.banner = Tap::Support::CommandLine.usage(__FILE__) puts opts exit end end.parse!(ARGV) require "irb" def app Tap::App.instance end def env Tap::Env.instance end IRB.start # Handles a bug in IRB that causes exit to throw :IRB_EXIT # and consequentially make a warning message, even on a # clean exit. This module resets exit to the original # aliased method. module CleanExit # :nodoc: def exit(ret = 0) __exit__(ret) end end IRB.CurrentContext.extend CleanExit
Version data entries
10 entries across 10 versions & 2 rubygems