Class: DeployApp
- Inherits:
-
Object
- Object
- DeployApp
- Defined in:
- lib/deploy_app.rb
Instance Attribute Summary collapse
-
#workload_hash ⇒ Object
Returns the value of attribute workload_hash.
Instance Method Summary collapse
Instance Attribute Details
#workload_hash ⇒ Object
Returns the value of attribute workload_hash.
5 6 7 |
# File 'lib/deploy_app.rb', line 5 def workload_hash @workload_hash end |
Instance Method Details
#main ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/deploy_app.rb', line 7 def main = take_approval() gcr_url = "asia.gcr.io/#{[:project_id]}/#{[:image_repo] || [:app_name]}" if(![:image_tag].nil?) image_url = validate_image_tag_exists?(gcr_url, [:image_tag]) else image_url = build_image(gcr_url, ) end deploy_image(gcr_url, image_url, ) end |