bin/mybones in my_scripts-0.0.2 vs bin/mybones in my_scripts-0.0.3
- old
+ new
@@ -1,13 +1,14 @@
-#!C:/Dev/ruby/bin/ruby.exe
-p ARGV
-case ARGV.size
+#/usr/bin/env ruby
+
+p ARGV
+case ARGV.size
when 1 then
project = ARGV[0]
system "bones create --github \"FIXME: Description for #{project}\" -s basic #{project}"
when 2 then
project = ARGV[0]
- descr = ARGV[1]
+ descr = ARGV[1]
system "bones create --github \"#{descr}\" -s basic #{project}"
else
puts "Usage: #{ARGV[0]} project_name \"description\""
exit 1
end
\ No newline at end of file