diff --git a/bin/gdk b/bin/gdk index 52440fa..651425c 100755 --- a/bin/gdk +++ b/bin/gdk @@ -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? diff --git a/gitlab-development-kit.gemspec b/gitlab-development-kit.gemspec index 8aedf34..8a55197 100644 --- a/gitlab-development-kit.gemspec +++ b/gitlab-development-kit.gemspec @@ -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"]