awes_cli 0.0.23 → 0.0.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deploy_app.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c56c2fd31133f9f9099a96c29b891f1cf30e206b9c4c5380e15d434037b2d9e
4
- data.tar.gz: e87b7f33e19820c970ea30217cbf5d0e0e972b8428b76bcd2eeb81f572e9f1cc
3
+ metadata.gz: f7841dbd0b1f58797c766eb6d4f594be7fc48d82db4dd45af2289e6db76fc6f8
4
+ data.tar.gz: 7945aa2ee989d87bcbf0fae9dd805bca650b96c44d55613af125b74bc030d67b
5
5
  SHA512:
6
- metadata.gz: 31091850270124ce71745f6c5b56e93329a668c2135c1a2c2b5fbd4fdd49de76904746e5247d3e9771d5a13de8011cb2c24c6e1f2833e3d82683eddc59523c79
7
- data.tar.gz: 3c6c403da51706902d567c2f000912573c4fb07188bec6d3c61490d4059ea6468552dae6e5388c505daca3994f996044228b2f414b08ed401d241ee8df5a5db2
6
+ metadata.gz: 9b983f65a6a2e93f5b1772b7eee2c5717a31ce0cbdf260e3ef06735510707e2b566b0d868fc2770347beef78f0aa700993e22ff770576b97e628f4d90f0d2df0
7
+ data.tar.gz: 68d2f56049b52715de0c20f204ad224ade0b560db65fe65bb9b4e0ef6de80f9b73ca23f01d2d6212dd70706199c1487589b37ed8807f77eb1ea6759943edf34a
data/lib/deploy_app.rb CHANGED
@@ -10,9 +10,6 @@ class DeployApp
10
10
 
11
11
  gcr_url = "asia.gcr.io/#{options[:project_id]}/#{options[:image_repo] || options[:app_name]}"
12
12
 
13
- self.workload_hash = fetch_worload_yaml(options[:app_name], options[:namespace])
14
- throw "Workload does not exists name: #{option[:app_name]} namespace: #{option[:namespace]}" if workload_hash.nil?
15
-
16
13
  if(!options[:image_tag].nil?)
17
14
  image_url = validate_image_tag_exists?(gcr_url, options[:image_tag])
18
15
  else
@@ -134,6 +131,9 @@ class DeployApp
134
131
  "--project #{options[:project_id]} "
135
132
  )
136
133
 
134
+ self.workload_hash = fetch_worload_yaml(options[:app_name], options[:namespace])
135
+ throw "Workload does not exists name: #{option[:app_name]} namespace: #{option[:namespace]}" if workload_hash.nil?
136
+
137
137
  app_name = options[:app_name]
138
138
  shell_cmd("kubectl set image #{workload_hash['kind']} #{app_name} #{app_name}=#{image_url} -n #{options[:namespace]}")
139
139
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awes_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.23
4
+ version: 0.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umar Siddiqui