class Vidar::Run

Public Class Methods

docker(command) click to toggle source
# File lib/vidar/run.rb, line 4
def docker(command)
  system("docker #{command}") || exit(1)
end
docker_compose(command) click to toggle source
# File lib/vidar/run.rb, line 8
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
kubectl(command) click to toggle source
# File lib/vidar/run.rb, line 13
def kubectl(command)
  system("kubectl --namespace=#{Config.get!(:namespace)} #{command}") || exit(1)
end