Skip to content
Snippets Groups Projects
Commit 921843bf authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Allow passing a directory to gdk init

parent 5a851de1
No related branches found
No related tags found
1 merge request!174Add 'gdk' command wrapper and gem
Loading
Loading
@@ -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?
Loading
Loading
Loading
Loading
@@ -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"]
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment