bin/cruisestatus in cruisestatus-1.2.1 vs bin/cruisestatus in cruisestatus-1.3.1
- old
+ new
@@ -1,6 +1,11 @@
#!/usr/bin/env ruby -wKU
-$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
-require "cruisestatus"
-require "cruisestatus/command"
+begin
+ require "cruisestatus"
+ require "cruisestatus/command"
+rescue LoadError
+ require "rubygems"
+ require "cruisestatus"
+ require "cruisestatus/command"
+end
exit CruiseStatus::Command.run!( ARGV )