Sha256: b2710360f1baccf4608e36fe6a0b8c466ba68fd317faabf4b987fa7ef60b2acd
Contents?: true
Size: 520 Bytes
Versions: 49
Compression:
Stored size: 520 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) system("kubectl --namespace=#{Config.get!(:namespace)} #{command}") || exit(1) end end end end
Version data entries
49 entries across 49 versions & 1 rubygems