Sha256: 2d2fdc19dc9c84802de67b63d25a9b365c16ae3e0019f09c7c3c0bbe496fdbc6
Contents?: true
Size: 732 Bytes
Versions: 1
Compression:
Stored size: 732 Bytes
Contents
# frozen_string_literal: true module KubernetesDeploy module OptionsHelper def self.default_and_check_template_dir(template_dir) if !template_dir && ENV.key?("ENVIRONMENT") template_dir = "config/deploy/#{ENV['ENVIRONMENT']}" end if !template_dir || template_dir.empty? puts "Template directory is unknown. " \ "Either specify --template-dir argument or set $ENVIRONMENT to use config/deploy/$ENVIRONMENT " \ + "as a default path." exit 1 end template_dir end def self.revision_from_environment ENV.fetch('REVISION') do puts "ENV['REVISION'] is missing. Please specify the commit SHA" exit 1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kubernetes-deploy-0.23.0 | lib/kubernetes-deploy/options_helper.rb |