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

Move the gem into the gem/ directory

parent 3b23b7b6
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,4 +43,4 @@
/nginx/uwsgi_temp
/.gitlab-shell-bundle
/.gitlab-bundle
/*.gem
/gem/*.gem
File moved
#!/usr/bin/env ruby
require 'yaml'
 
$:.unshift(File.expand_path('../../lib', __FILE__))
require 'gitlab-development-kit'
# Gitlab Development Kit CLI launcher
#
# Note to contributors: this script must not change (much) because it is
Loading
Loading
@@ -13,6 +16,9 @@ module GDK
 
def self.launcher_main
case ARGV.first
when 'version'
puts "GitLab Development Kit gem version #{GDK::GEM_VERSION}"
true
when 'init'
if ARGV.count > 2
puts "Usage: gdk init [DIR]"
Loading
Loading
# coding: utf-8
$:.unshift(File.expand_path('../lib', __FILE__))
require 'gitlab-development-kit'
 
Gem::Specification.new do |spec|
spec.name = "gitlab-development-kit"
spec.version = '0.2.1'
spec.version = GDK::GEM_VERSION
spec.authors = ["Jacob Vosmaer"]
spec.email = ["jacob@gitlab.com"]
 
Loading
Loading
@@ -10,6 +12,6 @@ Gem::Specification.new do |spec|
spec.description = %q{CLI for GitLab Development Kit.}
spec.homepage = "https://gitlab.com/gitlab-org/gitlab-development-kit"
spec.license = "MIT"
spec.files = []
spec.files = ['lib/gitlab-development-kit.rb']
spec.executables = ['gdk']
end
module GDK
GEM_VERSION = '0.2.2'
end
# GitLab Development Kit CLI parser / executor
#
# This file is loaded by the 'gdk' command in the gem. This file is NOT
# part of the gitlab-development-kit gem so that we can iterate faster.
 
module GDK
PROGNAME = 'gdk'
Loading
Loading
@@ -19,7 +22,7 @@ module GDK
puts File.read(File.join($gdk_root, 'HELP'))
true
else
puts "Usage: #{PROGNAME} run|init|install|update|reconfigure|help [ARGS...]"
puts "Usage: #{PROGNAME} run|init|install|update|reconfigure|version|help [ARGS...]"
false
end
end
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