gct 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gct/command/init/ci.rb +3 -8
- data/lib/gct/command/init/gitlab-ci.rb +14 -0
- data/lib/gct/command.rb +1 -1
- data/lib/gct/version.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: a84196fa8fc576ea6565f0bf1b6610e8ae1a30169159897f7973759550ee8ab5
|
4
|
+
data.tar.gz: f33580c415c60c45c0ea316df746c08ec9679dec82cf65ead350edb2f8568204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5c3d8edd82716b9ef105fb83f44e9de5596994b4728bbb1b82708cefec3ae9de740cb4f3f7cffb2b906a2cb86ddc853068fb742759247cd4a09f7d1359fc895
|
7
|
+
data.tar.gz: 14e33ccafe4f6b76a711df5b7d80eba92f4239bd006692cee2eb22708b6817568fa27f2ac2fa0ad5907faa76d010a189535a1803a38decb8a1a3299fab868d42
|
data/lib/gct/command/init/ci.rb
CHANGED
@@ -9,25 +9,20 @@ module Gct
|
|
9
9
|
DESC
|
10
10
|
|
11
11
|
self.arguments = [
|
12
|
-
CLAide::Argument.new('NAME', true),
|
13
12
|
]
|
14
13
|
|
15
14
|
def initialize(argv)
|
16
|
-
@name = argv.shift_argument
|
17
15
|
super
|
18
|
-
@additional_args = argv.remainder!
|
19
16
|
end
|
20
17
|
|
21
18
|
def validate!
|
22
19
|
super
|
23
|
-
help! 'A name for the Pod is required.' unless @name
|
24
|
-
help! 'The Pod name cannot contain spaces.' if @name =~ /\s/
|
25
|
-
help! 'The Pod name cannot contain plusses.' if @name =~ /\+/
|
26
|
-
help! "The Pod name cannot begin with a '.'" if @name[0, 1] == '.'
|
27
20
|
end
|
28
21
|
|
29
22
|
def run
|
30
|
-
puts "
|
23
|
+
puts "init ci".green
|
24
|
+
cp_path = Pathname.new(__FILE__).parent + 'gitlab-ci.rb'
|
25
|
+
system "cp #{cp_path} .gitlab-ci.yml"
|
31
26
|
end
|
32
27
|
end
|
33
28
|
end
|
data/lib/gct/command.rb
CHANGED
data/lib/gct/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jieming
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -130,6 +130,7 @@ files:
|
|
130
130
|
- lib/gct/command/create/third.rb
|
131
131
|
- lib/gct/command/init.rb
|
132
132
|
- lib/gct/command/init/ci.rb
|
133
|
+
- lib/gct/command/init/gitlab-ci.rb
|
133
134
|
- lib/gct/command/init/unit.rb
|
134
135
|
- lib/gct/command/op.rb
|
135
136
|
- lib/gct/command/op/gems.rb
|
@@ -163,8 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
164
|
- !ruby/object:Gem::Version
|
164
165
|
version: '0'
|
165
166
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.7
|
167
|
+
rubygems_version: 3.0.3
|
168
168
|
signing_key:
|
169
169
|
specification_version: 4
|
170
170
|
summary: '"gct ios 自动化脚本工具"'
|