awes_cli 0.0.10 → 0.0.11

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_config.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2bf8402db7e5c099a93c54ecfa9922c669dcd14c8909fda0cec077fd6230aab
4
- data.tar.gz: e69c603d00b5c50eb31a6fa74381128e504feed24b193e19cd4152d45e86e9cf
3
+ metadata.gz: 762baa6d19ad8f2222a0587e9f6fa6480616fdeedefe3c31233757a3bd6cf04d
4
+ data.tar.gz: 910d6e3701b492d13be6dfd002aa98df457a3eda0b7eb13a055dd8ccdfc77f0e
5
5
  SHA512:
6
- metadata.gz: 8545a4fce94d82f06c3a4570dfa51239745f54e149fa80aeefb03e12934b2ad74ffc178a4a54e9ab9ac32a7d66e4e5e805f9701943ebee117056e68feb637115
7
- data.tar.gz: 436fe114c02c2d877d040a150f67e2e1261dc1aaf0ab801c3e16f1d0ebcdab37ba8e947d79073773fdf34a54f136429a7c1a1f394879d01f19cb9d0d87390c0b
6
+ metadata.gz: 9bae0f381c1de58cc2a55ac96a4773347a9a530e05a39346622d94f60542584012c6a182745d207a4230700bde70afda9e97cce8f6c35cc5b42eff195a49d448
7
+ data.tar.gz: 9bcfbaeacee77563d74ceda83699032fd0ef05867c238857dba38f3f3480f300e12aec87009f736fedfac1af76b11752f6bccea2339d8860b4b71697cee42926
data/lib/deploy_config.rb CHANGED
@@ -157,15 +157,15 @@ class DeployConfig
157
157
  env_key = env_name[1..-1]
158
158
  env_val = override_envs[env_key] || ENV[env_key] || k8s_deployment_envs[env_key]
159
159
  next if env_val.nil?
160
- yaml_file[env_name] = "'" + env_val + "'"
160
+ yaml_file.gsub!(env_name, "'#{env_val}'")
161
161
  end
162
162
 
163
163
  gcr_url = "gcr.io/#{options[:project_id]}/#{options[:app_name]}"
164
164
  opt_image_url = options[:image_tag] && "#{gcr_url}:#{options[:image_tag]}"
165
165
 
166
166
  image_url = "#{gcr_url}:current"
167
- image_url = opt_image_url if validate_image_tag_exists?(opt_image_url)
168
167
  image_url = spec[:image] if validate_image_tag_exists?(spec[:image])
168
+ image_url = opt_image_url if validate_image_tag_exists?(opt_image_url)
169
169
 
170
170
  if !validate_image_tag_exists?(image_url)
171
171
  build_image(image_url, gcr_url, options)
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.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umar Siddiqui