ranch-hand 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3287e6ba9e32a2da90a1c529072ed825a6138f322fff7b685a73a82132b8cc44
4
- data.tar.gz: 96f1566d44edd541b0055935612e105a97218308d2013d66fe1686f207802af1
3
+ metadata.gz: 6008b690f312b7f5966b8f846774db3cf7732ae65ed7bb5f5aa739c99e6e75dc
4
+ data.tar.gz: 7c5f3229830e658d2ebfa002562df901791802920459d3f3e88764dd825b4820
5
5
  SHA512:
6
- metadata.gz: ece0add393fbedcbc4a16c6127612859908a9374f341ac58e446e2040c0bfc4f57bc3a31c4eba009f40354bc0ab1110ea87cd01bee9d9c7d1f939c90555c13fa
7
- data.tar.gz: ceacbb28497438d64dee078a98fcfa5c9596481ea1a7dbf47a7432015027e4cfc46ded69f3e7b2376a657b0278cde6bdeb773c45f0b655487d98a9dcb9e95507
6
+ metadata.gz: ad85870f429f70ca11025e5e00e1fd442b935f1683b651c73235dede9b433e16acb3e50c33f389468949717afa2781854c15c926e9e16477db6659fceb7bcc8f
7
+ data.tar.gz: b37cd3ad67bf7f34dfb52942b8cc81c643c8654daeaee66263757e2a80a2ce49a6eda5fa6c45ac8841e5d646a8973f2bd792b78dcf0effd1e7f989b52b2001a2
data/bin/ranch-hand CHANGED
@@ -44,7 +44,7 @@ module RanchHandCLI
44
44
  c.flag [:p, :pod], default_value: config[:pod], desc: "Run command in a specific pod. If used with -g only the pod name can be specified and the command will be run against the first in the group"
45
45
 
46
46
  c.action do |global_options, command_options, args|
47
- RanchHand::KubeCtl.new.exec(command_options)
47
+ RanchHand::KubeCtl.new.exec(**command_options)
48
48
  end
49
49
  end
50
50
 
@@ -3,7 +3,7 @@ module RanchHand
3
3
  private
4
4
 
5
5
  def command(opts={})
6
- TTY::Command.new(opts)
6
+ TTY::Command.new(**opts)
7
7
  end
8
8
 
9
9
  def prompt
@@ -2,7 +2,8 @@ module RanchHand
2
2
  class KubeCtl
3
3
  include RanchHand::Commands
4
4
 
5
- def exec(options={})
5
+ def exec(**options)
6
+ options ||= {}
6
7
  # options = project_config.merge(options)
7
8
 
8
9
  namespace = options.delete(:namespace)
@@ -1,3 +1,3 @@
1
1
  module RanchHand
2
- VERSION = "0.5.1"
2
+ VERSION = "0.6.0"
3
3
  end
data/ranch-hand.gemspec CHANGED
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^bin/ranch-hand}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
+ spec.required_ruby_version = '~> 3.0'
27
+
26
28
  spec.add_development_dependency "bundler", "~> 2.0"
27
29
  spec.add_development_dependency "rake", "~> 10.0"
28
30
  spec.add_development_dependency "rspec", "~> 3.0"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ranch-hand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peregrinator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-03 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -148,16 +148,16 @@ require_paths:
148
148
  - lib
149
149
  required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ">="
151
+ - - "~>"
152
152
  - !ruby/object:Gem::Version
153
- version: '0'
153
+ version: '3.0'
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.1.2
160
+ rubygems_version: 3.2.3
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Provides an interface between the Rancher CLI and the Kubectl commands