Class: Fastlane::Console
- Inherits:
-
Object
- Object
- Fastlane::Console
- Defined in:
- fastlane/lib/fastlane/console.rb
Overview
Opens an interactive developer console
Class Method Summary collapse
Class Method Details
.execute(args, options) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'fastlane/lib/fastlane/console.rb', line 6 def self.execute(args, ) 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.('Welcome to fastlane interactive!') catch(:IRB_EXIT) { @irb.eval_input } end |