fastlane-plugin-gs_deliver 0.2.18 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df4980a105dbdd2593ef3e00d18b1bc5fdd8c9f8
|
4
|
+
data.tar.gz: d1547377421fe8a5cbdf554c1dbd877390d8e65a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a38a18235b649510d4ba5c730d2aeba35f5df4a19786d9681d56d23bc410f21badfa45899028b9d64f9c15df22c698ea067e45bc4f82e98e376b19197a2c47
|
7
|
+
data.tar.gz: 21e948dfafa1dc9228d9eb787f9d8c0b081da7316ece8fb33841bbf3b4a31c0a038f10fded4b43897e0f19ac1a81219ac4ae33c139a888d5b82e788f4a8f491c
|
@@ -21,6 +21,9 @@ module Fastlane
|
|
21
21
|
class GsExecuteCommandAction < Action
|
22
22
|
def self.run(options)
|
23
23
|
require 'json'
|
24
|
+
if options[:request] == nil
|
25
|
+
raise "Can't send command to server. :request is required field"
|
26
|
+
end
|
24
27
|
|
25
28
|
if options[:callCmd] != nil && options[:callCmd].class == Hash
|
26
29
|
if options[:storeIdentificator] == nil || options[:storeVersion] == nil || options[:platform] == nil || options[:rc] == nil || options[:callCmd] == nil
|
@@ -40,12 +43,12 @@ module Fastlane
|
|
40
43
|
|
41
44
|
params = {}
|
42
45
|
options.all_keys.each do |key|
|
43
|
-
params[key] = options[key] if options[key] != nil && key != :lang
|
46
|
+
params[key] = options[key] if options[key] != nil && key != :lang && key != :request
|
44
47
|
end
|
45
48
|
json_params = params.to_json
|
46
49
|
response = ""
|
47
50
|
if options[:cmd].class != Hash && (options[:cmd].include? "file")
|
48
|
-
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder
|
51
|
+
UI.message("curl -k -H \"Content-Type: application/json\" -d \'#{json_params}\' https://mobile.geo4.io/bot/releaseBuilder/#{options[:request]}")
|
49
52
|
response = `curl -k -H "Content-Type: application/json" -d '#{json_params}' https://mobile.geo4.io/bot/releaseBuilder/cmd`
|
50
53
|
FileHelper.write(Dir.pwd + "/../../notes/" + options[:project] + "/" +
|
51
54
|
options[:displayVersionName] + "_" + options[:lang] + ".txt", response)
|
@@ -138,6 +141,10 @@ module Fastlane
|
|
138
141
|
FastlaneCore::ConfigItem.new(key: :storeVersion,
|
139
142
|
description: "storeVersion",
|
140
143
|
optional: true,
|
144
|
+
type: String),
|
145
|
+
FastlaneCore::ConfigItem.new(key: :request,
|
146
|
+
description: "request",
|
147
|
+
optional: true,
|
141
148
|
type: String)
|
142
149
|
]
|
143
150
|
end
|