civo_cli 0.4.8 → 0.4.9

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: 14c04acd878f426f06abc96b2016dcd85e91706b121f0dd5b185bf0a2e7ec85b
4
- data.tar.gz: e80ba343f83c2e5fb9c73bb93bce5acb0f33756f039dc335916c16645b58ecee
3
+ metadata.gz: 43c56229c11277e763a5ac56f9a764c49096f8894da458d7be0912dc5e86ea72
4
+ data.tar.gz: 4a0ab0c07f462fc8f90177c9a5c9b07fb2059e536b0a11c334ec2dcdea9e1f14
5
5
  SHA512:
6
- metadata.gz: b4f0e3e6dff28ae67fc3f47cfda37ed02dd2f252c0b29b049e15ddf80e5e9642b9078e3bd9c5b74b927b15afef70785445c0b13d330893aab5d8e4d068a18653
7
- data.tar.gz: c4f59cbf1e1242000ddca04f48f04a96d449430e1c43233c2e4136cf9e2f64791de95a62f02089702fe8eea6769eef128d13c520fb15baabc914552a02ac68d6
6
+ metadata.gz: 7a5e315adcb0a40f79bf3262d41e3d42b113c2c170095b0f5ded8950876e59687f781f3be80cdb4a2f94e1923d7f0cb08c0ccdc8f58c7e49a4a5ce7c65a1c0df
7
+ data.tar.gz: b402ecd692e2044d5801b5a1233dee672e15217091c6da68f826abb4574500b1ebe0c6ddca6dfbac58577c4c27000de7055836a0a60a83f9cf0dc910c150fcc6
@@ -3,6 +3,10 @@ All notable changes to the Civo CLI will be documented in this file.
3
3
 
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [0.4.9] - 2019-10-23
7
+ ### Changed
8
+ - `civo k3s versions` now shows which version will be installed by default.
9
+
6
10
  ## [0.4.8] - 2019-10-17
7
11
  ### Fixed
8
12
  - `civo k3s ls` was always warning about an upgrade available.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civo_cli (0.4.8)
4
+ civo_cli (0.4.9)
5
5
  bundler (~> 1.17)
6
6
  civo (>= 1.2.9)
7
7
  colorize
@@ -1,3 +1,3 @@
1
1
  module CivoCLI
2
- VERSION = "0.4.8"
2
+ VERSION = "0.4.9"
3
3
  end
@@ -32,6 +32,30 @@ module CivoCLI
32
32
  end
33
33
  map "ls" => "list", "all" => "list"
34
34
 
35
+ desc "versions", "list available k3s versions"
36
+ option :quiet, type: :boolean, aliases: '-q'
37
+ def versions
38
+ CivoCLI::Config.set_api_auth
39
+ if options[:quiet]
40
+ Civo::Kubernetes.versions.each do |k3s|
41
+ puts k3s.version
42
+ end
43
+ else
44
+ rows = []
45
+ Civo::Kubernetes.versions.each do |k3s|
46
+ if k3s.default
47
+ rows << [k3s.version, k3s.type, "<====="]
48
+ else
49
+ rows << [k3s.version, k3s.type, ""]
50
+ end
51
+ end
52
+ puts Terminal::Table.new headings: ['Version', 'Type', 'Default'], rows: rows
53
+ end
54
+ rescue Flexirest::HTTPForbiddenClientException
55
+ reject_user_access
56
+ end
57
+ map "version" => "versions", "v" => "versions"
58
+
35
59
  desc "show ID/NAME", "show a Kubernetes cluster by ID or name"
36
60
  def show(id)
37
61
  CivoCLI::Config.set_api_auth
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: civo_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-10-17 00:00:00.000000000 Z
13
+ date: 2019-10-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake