awes_cli 0.0.24.1 → 0.0.25
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/lib/build_app_image.rb +2 -19
- data/lib/deploy_app.rb +2 -15
- data/lib/deploy_config.rb +2 -15
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e45de21aa2807bd1e0d36671b120836b878a3fc3637b87020b65c3a24ef25213
|
4
|
+
data.tar.gz: 5a7952c65198f19e96412253c8a03e75cde414aedfdaa455227f2740c72645de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16b4b1c840286cd11ca5c658f28a3388a811de313f40b98c640360116ecd46f07209aa45954cd9aac1e2ede841dba4e6e3d9ec286473c9235804d9ee0ff3636b
|
7
|
+
data.tar.gz: 9927493efbc0938dff1d43c1dc3f994f6ab24077406f0cdd6ede2c6b9436035494f53c15c468149cff0fcb1edb3650bd9d23f56d8826fa65a30eaa678c672527
|
data/lib/build_app_image.rb
CHANGED
@@ -15,15 +15,10 @@ class BuildAppImage
|
|
15
15
|
options = {}
|
16
16
|
|
17
17
|
require_options_keys = [:project_id, :image_repo]
|
18
|
-
optional_options_keys = [:cluster_location, :img_worker_pool]
|
19
18
|
|
20
19
|
opt_parser = OptionParser.new do |opts|
|
21
20
|
opts.banner = "Usage: ather build [options]"
|
22
21
|
|
23
|
-
opts.on("--img-worker-pool IMG_WORKER_POOL", "Img worker pool to build [optional]") do |val|
|
24
|
-
options[:img_worker_pool] = val
|
25
|
-
end
|
26
|
-
|
27
22
|
opts.on("--image-tag IMAGE_TAG", "Addtional Image tag to build [optional]") do |val|
|
28
23
|
options[:image_tag] = val
|
29
24
|
end
|
@@ -36,10 +31,6 @@ class BuildAppImage
|
|
36
31
|
options[:image_repo] = val
|
37
32
|
end
|
38
33
|
|
39
|
-
opts.on("--cluster-location CLUSTER_LOCATION", "App name [required or set env var CLUSTER_LOCATION]") do |val|
|
40
|
-
options[:cluster_location] = val
|
41
|
-
end
|
42
|
-
|
43
34
|
opts.on("-h", "--help", "Prints this help") do
|
44
35
|
puts opts
|
45
36
|
exit
|
@@ -57,13 +48,6 @@ class BuildAppImage
|
|
57
48
|
end
|
58
49
|
end
|
59
50
|
|
60
|
-
optional_options_keys.each do |key|
|
61
|
-
options[key] ||= ENV[key.to_s.upcase]
|
62
|
-
if options[key].nil?
|
63
|
-
options.delete(key)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
51
|
options
|
68
52
|
end
|
69
53
|
|
@@ -84,9 +68,8 @@ class BuildAppImage
|
|
84
68
|
time_image_url = "#{gcr_url}:#{time_image_tag}".strip
|
85
69
|
|
86
70
|
project_id = options[:project_id]
|
87
|
-
|
88
|
-
|
89
|
-
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} #{worker_pool} || true")
|
71
|
+
|
72
|
+
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} || true")
|
90
73
|
|
91
74
|
shell_cmd("gcloud container images add-tag --quiet #{time_image_url} #{commit_image_url}")
|
92
75
|
|
data/lib/deploy_app.rb
CHANGED
@@ -24,7 +24,6 @@ class DeployApp
|
|
24
24
|
options = {}
|
25
25
|
|
26
26
|
require_options_keys = [:project_id, :app_name, :namespace, :cluster, :cluster_location]
|
27
|
-
optional_options_keys = [:img_worker_pool]
|
28
27
|
|
29
28
|
opt_parser = OptionParser.new do |opts|
|
30
29
|
opts.banner = "Usage: ather deploy app [options]"
|
@@ -33,10 +32,6 @@ class DeployApp
|
|
33
32
|
options[:approve] = flag
|
34
33
|
end
|
35
34
|
|
36
|
-
opts.on("--img-worker-pool IMG_WORKER_POOL", "Img worker pool to build [optional]") do |val|
|
37
|
-
options[:img_worker_pool] = val
|
38
|
-
end
|
39
|
-
|
40
35
|
opts.on("--image-tag IMAGE_TAG", "Image tag to deploy [optional]") do |val|
|
41
36
|
options[:image_tag] = val
|
42
37
|
end
|
@@ -82,13 +77,6 @@ class DeployApp
|
|
82
77
|
end
|
83
78
|
end
|
84
79
|
|
85
|
-
optional_options_keys.each do |key|
|
86
|
-
options[key] ||= ENV[key.to_s.upcase]
|
87
|
-
if options[key].nil?
|
88
|
-
options.delete(key)
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
80
|
options
|
93
81
|
end
|
94
82
|
|
@@ -128,9 +116,8 @@ class DeployApp
|
|
128
116
|
time_image_url = "#{gcr_url}:#{time_image_tag}".strip
|
129
117
|
|
130
118
|
project_id = options[:project_id]
|
131
|
-
|
132
|
-
|
133
|
-
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} #{worker_pool} || true")
|
119
|
+
|
120
|
+
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} || true")
|
134
121
|
|
135
122
|
shell_cmd("gcloud container images add-tag --quiet #{time_image_url} #{commit_image_url}")
|
136
123
|
|
data/lib/deploy_config.rb
CHANGED
@@ -24,7 +24,6 @@ class DeployConfig
|
|
24
24
|
options = {}
|
25
25
|
|
26
26
|
require_options_keys = [:project_id, :app_name, :namespace, :cluster, :cluster_location, :kuztomize_env]
|
27
|
-
optional_options_keys = [:cluster_location, :img_worker_pool]
|
28
27
|
|
29
28
|
opt_parser = OptionParser.new do |opts|
|
30
29
|
opts.banner = "Usage: ather deploy config [options]"
|
@@ -33,10 +32,6 @@ class DeployConfig
|
|
33
32
|
options[:approve] = flag
|
34
33
|
end
|
35
34
|
|
36
|
-
opts.on("--img-worker-pool IMG_WORKER_POOL", "Img worker pool to build [optional]") do |val|
|
37
|
-
options[:img_worker_pool] = val
|
38
|
-
end
|
39
|
-
|
40
35
|
opts.on("--image-tag IMAGE_TAG", "Image tag to deploy [optional]") do |val|
|
41
36
|
options[:image_tag] = val
|
42
37
|
end
|
@@ -86,13 +81,6 @@ class DeployConfig
|
|
86
81
|
end
|
87
82
|
end
|
88
83
|
|
89
|
-
optional_options_keys.each do |key|
|
90
|
-
options[key] ||= ENV[key.to_s.upcase]
|
91
|
-
if options[key].nil?
|
92
|
-
options.delete(key)
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
84
|
options
|
97
85
|
end
|
98
86
|
|
@@ -145,9 +133,8 @@ class DeployConfig
|
|
145
133
|
time_image_url = "#{gcr_url}:#{time_image_tag}".strip
|
146
134
|
|
147
135
|
project_id = options[:project_id]
|
148
|
-
|
149
|
-
|
150
|
-
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} #{worker_pool} || true")
|
136
|
+
|
137
|
+
shell_cmd("gcloud builds submit --project #{project_id} --timeout=20m --tag #{time_image_url} || true")
|
151
138
|
|
152
139
|
shell_cmd("gcloud container images add-tag --quiet #{time_image_url} #{commit_image_url}")
|
153
140
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awes_cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Umar Siddiqui
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ather cli tool
|
14
14
|
email: umar.siddiqui@atherenergy.com
|
@@ -26,7 +26,7 @@ homepage: https://rubygems.org/gems/awes_cli
|
|
26
26
|
licenses:
|
27
27
|
- MIT
|
28
28
|
metadata: {}
|
29
|
-
post_install_message:
|
29
|
+
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|
32
32
|
- lib
|
@@ -41,8 +41,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
requirements: []
|
44
|
-
rubygems_version: 3.
|
45
|
-
signing_key:
|
44
|
+
rubygems_version: 3.1.4
|
45
|
+
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: Ather cli tool
|
48
48
|
test_files: []
|