sct 1.0.8 → 1.0.9
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/sct/lib/sct/commands/databasepull.rb +6 -3
- data/sct/lib/sct/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4e19d771e32524e38a9d685d161bdf57a17a71569536ce5af8fd51462b52960
|
|
4
|
+
data.tar.gz: 610520f2b59b575ccc858c80af79cd1b40b470c403c849e34415559461e9b4ee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cd68fb3fd3e6c5ba9c4a91232cb83427697631385367eefff7a5477fd99e10f8c524f9d7ea4327c56d7ab31a93fca09e4ee610aad3b099ce14d26f7ab4777e76
|
|
7
|
+
data.tar.gz: 2ab0d6e33f702ec64050126b05ee818e607ceae6b806a5ee91938295cf7e8e69824e3e3dacf41688e4f538041e67aaacfecd7c7708d168be3ce5311ef527e75b
|
|
@@ -6,7 +6,10 @@ module Sct
|
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def execute args, options
|
|
9
|
-
branch = ENV['CI_BRANCH']
|
|
9
|
+
branch = ENV['CI_BRANCH']
|
|
10
|
+
if not branch or branch == ""
|
|
11
|
+
branch = 'master'
|
|
12
|
+
end
|
|
10
13
|
|
|
11
14
|
# We need to set this locally, so that we don't save this at the repository
|
|
12
15
|
pipeline_endpoint = ENV['CI_MERGE_REQUEST_PIPELINE']
|
|
@@ -22,12 +25,12 @@ module Sct
|
|
|
22
25
|
|
|
23
26
|
if options.proactive_frame
|
|
24
27
|
UI.important("Requesting to pull database for proactive frame")
|
|
25
|
-
process_request = `curl -X POST -F token=#{private_token} -F ref
|
|
28
|
+
process_request = `curl -X POST -F token=#{private_token} -F ref=master -F variables[DB_PULL_FRAME]=true -F variables[REMOTE_BRANCH_NAME]=#{branch} #{pipeline_endpoint}`
|
|
26
29
|
end
|
|
27
30
|
|
|
28
31
|
if options.proactive_config
|
|
29
32
|
UI.important("Requesting to pull database for proactive config")
|
|
30
|
-
process_request = `curl -X POST -F token=#{private_token} -F ref
|
|
33
|
+
process_request = `curl -X POST -F token=#{private_token} -F ref=master -F variables[DB_PULL_CONFIG]=true -F variables[REMOTE_BRANCH_NAME]=#{branch} #{pipeline_endpoint}`
|
|
31
34
|
end
|
|
32
35
|
end
|
|
33
36
|
end
|
data/sct/lib/sct/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sct
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Reshad Farid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-06-
|
|
11
|
+
date: 2021-06-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colored
|