gitlab-development-kit 0.2.15 → 0.2.16
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 +4 -4
- data/bin/gdk +2 -60
- data/lib/gitlab_development_kit.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 99d51f37295622d92a07f02b2fb17187967fc293de906680af90b5ee70434bab
|
|
4
|
+
data.tar.gz: 7719b5ca965d7fa482d9dfe9a14c4866103ab0878bb26d53aaf123a2ae4b0e8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bb13c335d29f257aa763b61e59f2b36dc68dcd4b28b22e5a2fa5ef69b6644c8fc5aeac3e806e4af17c4fa2459327a8985e3ef5c52b6904ef1583a443aed383f
|
|
7
|
+
data.tar.gz: 954a35d82f3d03030eef5ec489a899c1576dbf71b52333d7e51cbd1e850cc38b78b792508a7a9c6eb4c1868b950b70316f4255f8459eee134c0494c57111985f
|
data/bin/gdk
CHANGED
|
@@ -26,7 +26,6 @@ module GDK
|
|
|
26
26
|
|
|
27
27
|
def run
|
|
28
28
|
return GDK::CommandBasic::Version.new.run if gdk_version?
|
|
29
|
-
return GDK::CommandBasic::Init.new(args[1..]).run if gdk_init?
|
|
30
29
|
|
|
31
30
|
if gdk_root
|
|
32
31
|
require(gdk_root.join('lib/gdk.rb'))
|
|
@@ -45,10 +44,9 @@ module GDK
|
|
|
45
44
|
warn <<~NOT_A_GDK_DIR
|
|
46
45
|
|
|
47
46
|
The current working directory is not inside a gitlab-development-kit
|
|
48
|
-
installation. Use 'cd' to go to your gitlab-development-kit
|
|
49
|
-
a new one with 'gdk init'.
|
|
47
|
+
installation. Use 'cd' to go to your gitlab-development-kit.
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
# Default: #{DEFAULT_INIT_DIRECTORY}
|
|
52
50
|
|
|
53
51
|
NOT_A_GDK_DIR
|
|
54
52
|
end
|
|
@@ -62,10 +60,6 @@ module GDK
|
|
|
62
60
|
%w[version --version].include?(args.first) && !gdk_root
|
|
63
61
|
end
|
|
64
62
|
|
|
65
|
-
def gdk_init?
|
|
66
|
-
args.first == 'init'
|
|
67
|
-
end
|
|
68
|
-
|
|
69
63
|
def find_root(current)
|
|
70
64
|
if current.join('GDK_ROOT').exist?
|
|
71
65
|
current.realpath
|
|
@@ -83,58 +77,6 @@ module GDK
|
|
|
83
77
|
true
|
|
84
78
|
end
|
|
85
79
|
end
|
|
86
|
-
|
|
87
|
-
class Init
|
|
88
|
-
def initialize(args)
|
|
89
|
-
@args = args
|
|
90
|
-
end
|
|
91
|
-
|
|
92
|
-
def run
|
|
93
|
-
warn("INFO: 'gdk init' is deprecated and will be removed in a future update.")
|
|
94
|
-
|
|
95
|
-
if show_help?
|
|
96
|
-
puts('Usage: gdk init [DIR]')
|
|
97
|
-
|
|
98
|
-
return true
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
directory = new_gdk_directory
|
|
102
|
-
if new_gdk_directory_invalid?(directory)
|
|
103
|
-
warn("ERROR: The proposed new GDK directory '#{directory}' is invalid because it begins with a dash.")
|
|
104
|
-
|
|
105
|
-
return false
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
if clone_gdk(directory)
|
|
109
|
-
puts("INFO: Successfully git cloned the GDK into '#{directory}'.")
|
|
110
|
-
true
|
|
111
|
-
else
|
|
112
|
-
warn("ERROR: An error occurred while attempting to git clone the GDK into '#{directory}'.")
|
|
113
|
-
false
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
private
|
|
118
|
-
|
|
119
|
-
attr_reader :args
|
|
120
|
-
|
|
121
|
-
def show_help?
|
|
122
|
-
args.count > 1 || (args & %w[-help --help]).any?
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
def new_gdk_directory_invalid?(directory)
|
|
126
|
-
directory.start_with?('-')
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
def new_gdk_directory
|
|
130
|
-
args.count == 1 ? args.first : GDK::DEFAULT_INIT_DIRECTORY
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
def clone_gdk(directory)
|
|
134
|
-
cmd = "git clone https://gitlab.com/gitlab-org/gitlab-development-kit.git #{directory}"
|
|
135
|
-
system(*cmd)
|
|
136
|
-
end
|
|
137
|
-
end
|
|
138
80
|
end
|
|
139
81
|
end
|
|
140
82
|
|
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitlab-development-kit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jacob Vosmaer
|
|
8
8
|
- GitLab
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2022-12-15 00:00:00.000000000 Z
|
|
@@ -39,7 +39,7 @@ homepage: https://gitlab.com/gitlab-org/gitlab-development-kit
|
|
|
39
39
|
licenses:
|
|
40
40
|
- MIT
|
|
41
41
|
metadata: {}
|
|
42
|
-
post_install_message:
|
|
42
|
+
post_install_message:
|
|
43
43
|
rdoc_options: []
|
|
44
44
|
require_paths:
|
|
45
45
|
- lib
|
|
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
55
55
|
version: '0'
|
|
56
56
|
requirements: []
|
|
57
57
|
rubygems_version: 3.3.26
|
|
58
|
-
signing_key:
|
|
58
|
+
signing_key:
|
|
59
59
|
specification_version: 4
|
|
60
60
|
summary: CLI for GitLab Development Kit
|
|
61
61
|
test_files: []
|