gitlab-development-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/gdk +30 -0
- metadata +46 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 42454aa4930e6c16a2d82b13fe1cb1fe0498bc54
|
4
|
+
data.tar.gz: a3f83d8622b0a7f6dd81f683950e0159cddf54b8
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4e433f7b9d6fe409f621c6632d77045100533d911dcceb1221f212ff8bccf065a5a386e321d8bc6330d7adff76f6a943028749fec14c25b4544638c592b9b997
|
7
|
+
data.tar.gz: 0bffec81508bb8284fc41dc69eeb875a8e5782d573b38c29be96df8c13b36a435b103f9fd8bf54362ce89261797c346e3eb8f80b81f44401c071906392bb4728
|
data/bin/gdk
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
def main
|
5
|
+
case ARGV.first
|
6
|
+
when 'init'
|
7
|
+
system(*%W(git clone -b gdk-cli https://gitlab.com/gitlab-org/gitlab-development-kit.git))
|
8
|
+
else
|
9
|
+
$gdk_root = find_root(Dir.pwd)
|
10
|
+
if $gdk_root.nil?
|
11
|
+
puts "Could not find GDK_ROOT in the current directory or any of its parents."
|
12
|
+
return false
|
13
|
+
end
|
14
|
+
puts "(in #{$gdk_root})"
|
15
|
+
load(File.join($gdk_root, 'lib/gdk.rb'))
|
16
|
+
GDK::main
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def find_root(current)
|
21
|
+
if File.exist?(File.join(current, 'GDK_ROOT'))
|
22
|
+
File.realpath(current)
|
23
|
+
elsif File.realpath(current) == '/'
|
24
|
+
nil
|
25
|
+
else
|
26
|
+
find_root(File.join(current, '..'))
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
exit(main)
|
metadata
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gitlab-development-kit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jacob Vosmaer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: CLI for GitLab Development Kit.
|
14
|
+
email:
|
15
|
+
- jacob@gitlab.com
|
16
|
+
executables:
|
17
|
+
- gdk
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- bin/gdk
|
22
|
+
homepage: https://gitlab.com/gitlab-org/gitlab-development-kit
|
23
|
+
licenses:
|
24
|
+
- MIT
|
25
|
+
metadata: {}
|
26
|
+
post_install_message:
|
27
|
+
rdoc_options: []
|
28
|
+
require_paths:
|
29
|
+
- lib
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - ">="
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '0'
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0'
|
40
|
+
requirements: []
|
41
|
+
rubyforge_project:
|
42
|
+
rubygems_version: 2.2.5
|
43
|
+
signing_key:
|
44
|
+
specification_version: 4
|
45
|
+
summary: CLI for GitLab Development Kit
|
46
|
+
test_files: []
|