Skip to content

Commit

Permalink
Allow passing a directory to gdk init
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobvosmaer committed Aug 8, 2016
1 parent 5a851de commit 921843b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion bin/gdk
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down
2 changes: 1 addition & 1 deletion gitlab-development-kit.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ["[email protected]"]

Expand Down

0 comments on commit 921843b

Please sign in to comment.