Commit 921843bf authored by Jacob Vosmaer's avatar Jacob Vosmaer

Allow passing a directory to gdk init

parent 5a851de1
......@@ -4,7 +4,14 @@ require 'fileutils'
def main
case ARGV.first
when 'init'
system(*%W(git clone -b gdk-cli https://gitlab.com/gitlab-org/gitlab-development-kit.git))
if ARGV.count > 2
puts "Usage: gdk init [DIR]"
return false
end
cmd = %W(git clone -b gdk-cli https://gitlab.com/gitlab-org/gitlab-development-kit.git)
cmd << ARGV[1] if ARGV.count == 2
system(*cmd)
else
$gdk_root = find_root(Dir.pwd)
if $gdk_root.nil?
......
......@@ -2,7 +2,7 @@
Gem::Specification.new do |spec|
spec.name = "gitlab-development-kit"
spec.version = '0.1.0'
spec.version = '0.1.1'
spec.authors = ["Jacob Vosmaer"]
spec.email = ["jacob@gitlab.com"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment