debian-mirror-gitlab/lib/gitlab/kubernetes/kubectl_cmd.rb

20 lines
427 B
Ruby
Raw Normal View History

2019-10-12 21:52:04 +05:30
# frozen_string_literal: true
module Gitlab
module Kubernetes
module KubectlCmd
class << self
def delete(*args)
%w(kubectl delete).concat(args).shelljoin
end
def apply_file(filename, *args)
raise ArgumentError, "filename is not present" unless filename.present?
%w(kubectl apply -f).concat([filename], args).shelljoin
end
end
end
end
end