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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/civo_cli/version.rb +1 -1
- data/lib/kubernetes.rb +24 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c56229c11277e763a5ac56f9a764c49096f8894da458d7be0912dc5e86ea72
|
4
|
+
data.tar.gz: 4a0ab0c07f462fc8f90177c9a5c9b07fb2059e536b0a11c334ec2dcdea9e1f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a5e315adcb0a40f79bf3262d41e3d42b113c2c170095b0f5ded8950876e59687f781f3be80cdb4a2f94e1923d7f0cb08c0ccdc8f58c7e49a4a5ce7c65a1c0df
|
7
|
+
data.tar.gz: b402ecd692e2044d5801b5a1233dee672e15217091c6da68f826abb4574500b1ebe0c6ddca6dfbac58577c4c27000de7055836a0a60a83f9cf0dc910c150fcc6
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
data/Gemfile.lock
CHANGED
data/lib/civo_cli/version.rb
CHANGED
data/lib/kubernetes.rb
CHANGED
@@ -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.
|
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-
|
13
|
+
date: 2019-10-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|