Sha256: 26268da065e9c93f15fbc9ae3ed1e429ad54f67fecf3a6cf9b2bb5333b50a926
Contents?: true
Size: 637 Bytes
Versions: 9
Compression:
Stored size: 637 Bytes
Contents
require 'irb' module Fastlane # Opens an interactive developer console class Console def self.execute(args, options) ARGV.clear IRB.setup(nil) @irb = IRB::Irb.new(nil) IRB.conf[:MAIN_CONTEXT] = @irb.context IRB.conf[:PROMPT][:FASTLANE] = IRB.conf[:PROMPT][:SIMPLE].dup IRB.conf[:PROMPT][:FASTLANE][:RETURN] = "%s\n" @irb.context.prompt_mode = :FASTLANE @irb.context.workspace = IRB::WorkSpace.new(binding) trap('INT') do @irb.signal_handle end UI.message('Welcome to fastlane interactive!') catch(:IRB_EXIT) { @irb.eval_input } end end end
Version data entries
9 entries across 9 versions & 1 rubygems