Sha256: e04eea31df40d4c997a8d382cbe84db89fda965a466ff63aff1ddf8a06fae127
Contents?: true
Size: 1.15 KB
Versions: 12
Compression:
Stored size: 1.15 KB
Contents
#!/usr/bin/env ruby $:.unshift(File.dirname(__FILE__) + "/../lib") require "poolparty" require 'git-style-binary/command' GitStyleBinary.command do banner <<-EOS Usage: #{$0} #{all_options_string} Open an irb session with the clouds.rb loaded EOS short_desc "Open an irb session with clouds.rb loaded" opt :inst_num, "The number of the instance to run bootstrap on", :type => :int run do |command| puts "Loading PoolParty console..." #exec "#{irb} #{libs} --simple-prompt" require 'irb/completion' require command[:clouds_dot_rb] require "#{File.dirname(__FILE__) + '/../lib/poolparty.rb'}" require 'irb' pool.auto_execute = false IRB.setup(nil) IRB.conf[:IRB_NAME]="cloud" IRB.conf[:PROMPT_MODE]=:CLOUD IRB.conf[:PROMPT][:CLOUD]={ :PROMPT_I => "%N> ", :PROMPT_S => "%l> ", :PROMPT_C => "* ", :PROMPT_N => ">> ", :RETURN => "=>%s\n" } irb=IRB::Irb.new IRB.conf[:IRB_RC].call(irb.context) if IRB.conf[:IRB_RC] IRB.conf[:MAIN_CONTEXT] = irb.context trap("SIGINT") do irb.signal_handle end catch(:IRB_EXIT) do irb.eval_input end end end
Version data entries
12 entries across 12 versions & 1 rubygems