Skip to content

Commit 132b48b

Browse files
committed
Add ctl command (a proxy for kubectl that sets kubeconfig and namespace)
1 parent ad19aed commit 132b48b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

lib/cuber.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
require 'cuber/commands/restart'
1010
require 'cuber/commands/run'
1111
require 'cuber/commands/deploy'
12+
require 'cuber/commands/ctl'
1213

1314
module Cuber
1415

lib/cuber/commands/ctl.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module Cuber::Commands
2+
class Ctl
3+
include Cuber::Utils
4+
5+
def initialize options
6+
@options = options
7+
end
8+
9+
def execute
10+
kubectl *ARGV
11+
end
12+
13+
end
14+
end

lib/cuber/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Cuber
2-
VERSION = '1.5.0'.freeze
2+
VERSION = '1.6.0'.freeze
33
end

0 commit comments

Comments
 (0)