lib/vidar/run.rb in vidar-0.1.5 vs lib/vidar/run.rb in vidar-0.1.6
- old
+ new
@@ -4,15 +4,15 @@
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)
+ 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)
+ system("kubectl --namespace=#{Config.get!(:namespace)} #{command}") || exit(1)
end
end
end
end