Sha256: 7f6e6bc5ef0851ecee39c7360f5b0b91a1fe7c22322f469da4c18d91c114aa5d
Contents?: true
Size: 713 Bytes
Versions: 1
Compression:
Stored size: 713 Bytes
Contents
module Vidar class Run class << self def docker(command) system("docker #{command}") || exit(1) end def docker_compose(command) args = %w[revision current_branch].map { |arg| "#{arg.upcase}=#{Config.get!(arg.to_sym)}" } system("#{args.join(' ')} docker compose -f #{Config.get!(:compose_file)} #{command}") || exit(1) end def kubectl(command, namespace: Config.get!(:namespace)) system("#{kubectl_envs_string}kubectl --namespace=#{namespace} #{command}") || exit(1) end def kubectl_envs_string https_proxy = Config.deploy_config.https_proxy "HTTPS_PROXY=#{https_proxy} " if https_proxy end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vidar-1.13.0.rc1 | lib/vidar/run.rb |