1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00
httparty/script/console

10 lines
438 B
Text
Raw Normal View History

2008-07-27 11:52:18 -04:00
#!/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/httparty.rb'}"
puts "Loading httparty gem"
2008-07-27 11:52:18 -04:00
exec "#{irb} #{libs} --simple-prompt"