Skip to content

Commit

Permalink
Add ctl command (a proxy for kubectl that sets kubeconfig and namespace)
Browse files Browse the repository at this point in the history
  • Loading branch information
collimarco committed Nov 1, 2022
1 parent ad19aed commit 132b48b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/cuber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
require 'cuber/commands/restart'
require 'cuber/commands/run'
require 'cuber/commands/deploy'
require 'cuber/commands/ctl'

module Cuber

Expand Down
14 changes: 14 additions & 0 deletions lib/cuber/commands/ctl.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module Cuber::Commands
class Ctl
include Cuber::Utils

def initialize options
@options = options
end

def execute
kubectl *ARGV
end

end
end
2 changes: 1 addition & 1 deletion lib/cuber/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Cuber
VERSION = '1.5.0'.freeze
VERSION = '1.6.0'.freeze
end

0 comments on commit 132b48b

Please sign in to comment.