summaryrefslogtreecommitdiffstats
path: root/ev/running/script/console
diff options
context:
space:
mode:
authorMatt Hicks <mhicks@redhat.com>2008-06-09 17:20:16 -0400
committerMatt Hicks <mhicks@redhat.com>2008-06-09 17:21:57 -0400
commitd66e9168e598b4c01e2eeb768dc6cf00f6c3b175 (patch)
tree8f9c44062f7c56cc2d959a8e9dbdf0ae543f6731 /ev/running/script/console
parent40cbdbedf9436bc8a71bba05d7c1daad12c3bd16 (diff)
downloadtools-d66e9168e598b4c01e2eeb768dc6cf00f6c3b175.tar.gz
tools-d66e9168e598b4c01e2eeb768dc6cf00f6c3b175.tar.xz
tools-d66e9168e598b4c01e2eeb768dc6cf00f6c3b175.zip
Initial ev commit
Diffstat (limited to 'ev/running/script/console')
-rwxr-xr-xev/running/script/console10
1 files changed, 10 insertions, 0 deletions
diff --git a/ev/running/script/console b/ev/running/script/console
new file mode 100755
index 0000000..f7863c1
--- /dev/null
+++ b/ev/running/script/console
@@ -0,0 +1,10 @@
+#!/usr/bin/env ruby
+# File: script/console
+irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
+
+libs = " -r irb/completion"
+# Perhaps use a console_lib to store any extra methods I may want available in the cosole
+# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
+libs << " -r #{File.dirname(__FILE__) + '/../lib/running.rb'}"
+puts "Loading running gem"
+exec "#{irb} #{libs} --simple-prompt" \ No newline at end of file