Sha256: 293bd085f27cc690e6c263667255369de62ef9e6fb417e5cd4710268074ef29c
Contents?: true
Size: 640 Bytes
Versions: 19
Compression:
Stored size: 640 Bytes
Contents
#!/usr/bin/env ruby require 'gooddata' require 'gooddata/command' require 'irb' include GoodData module IRB def IRB.start2(bind, ap_path) IRB.setup(ap_path) irb = Irb.new(WorkSpace.new(bind)) @CONF[:MAIN_CONTEXT] = irb.context trap("SIGINT") do irb.signal_handle end catch(:IRB_EXIT) do irb.eval_input end end end param = ARGV.shift if ARGV.length if param == '--debug' then require 'logger' GoodData.logger = Logger.new STDOUT end Command.connect puts "Logged into GoodData as #{GoodData.profile.user} (#{GoodData.profile['login']})" puts IRB::start2 binding, $STDIN puts "Logging out"
Version data entries
19 entries across 19 versions & 1 rubygems