Permalink
Browse files

changed to able to specify project directory

  • Loading branch information...
1 parent 9a8f89d commit f3ae62b12e0ce8f7bd061cf21f6691b48a88c849 @jugyo committed Feb 3, 2010
Showing with 8 additions and 1 deletion.
  1. +8 −1 bin/cilite
View
@@ -3,7 +3,6 @@
$:.unshift(File.dirname(__FILE__) + "/../lib")
require 'rubygems'
-require 'cilite'
require 'choice'
Choice.options do
@@ -74,6 +73,14 @@ end
options = Choice.choices
+if Choice.rest[0]
+ Dir.chdir(Choice.rest[0])
+end
+
+puts "Project directory is `#{Dir.pwd}`"
+
+require 'cilite'
+
CiLite::Runner.start(
:branch => options[:branch],
:command => options[:command],

0 comments on commit f3ae62b

Please sign in to comment.