Sha256: 20c40097f6d7533e1c215b788b01585ffd6c1c7075efce33e1730b4d44a6d27e

Contents?: true

Size: 811 Bytes

Versions: 4

Compression:

Stored size: 811 Bytes

Contents

irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'

libs =  " -r irb/completion"
libs << " -r readline"
libs << " -r rubygems"
require 'rubygems'

begin
  exists_debug_lib = require 'ruby-debug'
  if !exists_debug_lib.nil? && exists_debug_lib == true
    libs << " -r ruby-debug"
  end
  puts "Console have installed \"ruby-debug\" library."
rescue Exception => e
  puts "Console haven't installed \"ruby-debug\" library."
end

libs << " -r adaptation"

if RUBY_PLATFORM =~ /(:?mswin|mingw)/
  ENV_PATH = "/windows/temp"
else
  ENV_PATH = "/tmp"
end

f = File.new("#{ENV_PATH}/adaptor_path.rb", "w")
path="ADAPTOR_ROOT = \"" + "#{ADAPTOR_ROOT}\""
f.write("#{path}")
f.close

libs << " -r #{ENV_PATH}/adaptor_path.rb"
libs << " -r adaptation/console/environment"
exec "#{irb} #{libs} --simple-prompt"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adaptation-0.0.4 lib/commands/console.rb
adaptation-0.0.6 lib/commands/console.rb
adaptation-0.0.7 lib/commands/console.rb
adaptation-0.0.5 lib/commands/console.rb