quiverstaskrunner 0.1.254172 → 0.1.254178
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33ef1270476379daf5f8aa8344d4f7473e7cd992
|
|
4
|
+
data.tar.gz: 64db2c080852f56f42ce4fe6d1908f85cfbbddd9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70bd6e203a92127a7e58cac8f25b563ff1f26b63c52c5199902c84530b7b234c8814c91a506ad4a67f944195ec8b5dda18ebe1914ae4c36378da4f1cb4bb8ccd
|
|
7
|
+
data.tar.gz: 5f1018a88be8d305f5d1c68474fd729701cc6efd8c96f1f2e13cfd06dc636bb81afbdbdf0d5f60a926699e1be875bb9438d721a494f8c0eb38dba613ba016b79
|
|
@@ -123,17 +123,12 @@ module QuiversTaskrunner
|
|
|
123
123
|
|
|
124
124
|
def deploy_blob_pkg_to_staging(cloud_service_name, blob_pkg_name, pkg_dir, labels, options={})
|
|
125
125
|
# 1. Load cloud service's details
|
|
126
|
-
verbose = (defined? ARGV) && (!ARGV.nil?) && (!ARGV.empty?) && (ARGV.detect( |x| x == "verbose"))
|
|
127
126
|
env = options[:env] || EnvHelper.get_env("env")
|
|
128
127
|
timeout = options[:timeout] || 20*60 # 20 minutes
|
|
129
128
|
update_message_on = is_update_message_on
|
|
130
129
|
cloud_services = SettingsHelper.get_settings(File.join(Dir.pwd, @@secrets[:cloud_services]), env, @@get_settings_options)
|
|
131
130
|
cloud_service_details = cloud_services[cloud_service_name]
|
|
132
131
|
raise StandardError, "No details were found for cloud service #{cloud_service_name}" unless cloud_service_details
|
|
133
|
-
if verbose
|
|
134
|
-
puts "cloud_service_details value:".colorize(:yellow)
|
|
135
|
-
puts cloud_service_details
|
|
136
|
-
end
|
|
137
132
|
# 2. Load storage details
|
|
138
133
|
storage = SettingsHelper.get_settings(File.join(Dir.pwd, @@secrets[:storage]), env, @@get_settings_options)
|
|
139
134
|
storage_details = storage["blob"]
|
|
@@ -8,7 +8,7 @@ module QuiversTaskrunner
|
|
|
8
8
|
module_function
|
|
9
9
|
|
|
10
10
|
def get_settings(filepath, env={}, options={})
|
|
11
|
-
verbose = (defined? ARGV) && (!ARGV.nil?) && (!ARGV.empty?) && (ARGV.detect
|
|
11
|
+
verbose = (defined? ARGV) && (!ARGV.nil?) && (!ARGV.empty?) && (ARGV.detect { |x| x == "verbose" })
|
|
12
12
|
environment = env.is_a?(Hash) ? "defaults" : env
|
|
13
13
|
file_contents = open(filepath).read
|
|
14
14
|
YAML.load(ERB.new(file_contents).result).to_hash
|
|
@@ -31,12 +31,17 @@ module QuiversTaskrunner
|
|
|
31
31
|
settings
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
+
if verbose
|
|
35
|
+
puts "Final settings:".colorize(:yellow)
|
|
36
|
+
puts final_settings
|
|
37
|
+
end
|
|
38
|
+
|
|
34
39
|
return final_settings
|
|
35
40
|
end
|
|
36
41
|
|
|
37
42
|
def get_cli_settings(options={})
|
|
38
43
|
# Returns a Hash
|
|
39
|
-
verbose = (defined? ARGV) && (!ARGV.nil?) && (!ARGV.empty?) && (ARGV.detect
|
|
44
|
+
verbose = (defined? ARGV) && (!ARGV.nil?) && (!ARGV.empty?) && (ARGV.detect { |x| x == "verbose" })
|
|
40
45
|
if verbose
|
|
41
46
|
puts "ARGV:".colorize(:yellow)
|
|
42
47
|
puts ARGV
|
|
@@ -1 +1 @@
|
|
|
1
|
-
module QuiversTaskrunner
|
|
1
|
+
module QuiversTaskrunner
|