Sha256: 890332a804920642ddc9da6bfe42f24354e1626c0439959ebcdd4b0679a9da2a
Contents?: true
Size: 743 Bytes
Versions: 17
Compression:
Stored size: 743 Bytes
Contents
class ConsoleCommand < CmdParse::Command def initialize super( 'console', false ) @short_desc = _("Open a console") # @description = _("") @opts = {:irb => 'irb'} self.options = CmdParse::OptionParserWrapper.new do |opt| opt.on("--irb", _("Irb executable to use"), "-i"){ |irb| @opts[:irb] = irb } end set_execution_block do ENV['SPIDER_RUNMODE'] = $SPIDER_RUNMODE if ($SPIDER_RUNMODE) ENV['SPIDER_CONFIG_SETS'] = $SPIDER_CONFIG_SETS.join(',') if ($SPIDER_CONFIG_SETS) exec("#{@opts[:irb]} -I #{$SPIDER_LIB} -r spiderfw") end end end
Version data entries
17 entries across 17 versions & 1 rubygems