bin/vmc in vmc-0.3.23 vs bin/vmc in vmc-0.4.0.beta.1
- old
+ new
@@ -1,6 +1,15 @@
#!/usr/bin/env ruby
-require File.expand_path('../../lib/cli', __FILE__)
+vmc = File.expand_path("../../vmc", __FILE__)
+vmc_ng = File.expand_path("../../vmc-ng", __FILE__)
-VMC::Cli::Runner.run(ARGV.dup)
+bin =
+ if File.exists?(File.expand_path("~/.vmc/use-ng"))
+ $LOAD_PATH.unshift "#{vmc_ng}/lib"
+ "#{vmc_ng}/bin/vmc"
+ else
+ "#{vmc}/bin/vmc"
+ end
+$0 = bin
+load bin