civo_cli 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/civo_cli/version.rb +1 -1
- data/lib/kubernetes.rb +2 -1
- data/lib/kubernetes_applications.rb +9 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f28db3afa45bde614833b595a4eb92bc274755f6a7440532e9ed159bb67773b9
|
4
|
+
data.tar.gz: 5139b7f529bdbcdaf2b6e87541a7e05421b9393b83e5fb26af2d1ef4e3cd9bc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bc62ba338c5fdc4d090b5f06ce317f22a37c13267e9d975eb30da57346de800033eec53829bc3108aae22ed3edf7bd7aaff316a390aff24449f8454ac5906da
|
7
|
+
data.tar.gz: 200b594a80530e5fe294ee77127fd4d3d00cbc93161f4b7e724496ed87502480eda6c4e0b7baa37e622c218b3bf30dacefb47bdf84be45444b35a1167eaaff89
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,13 @@ 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.3.17] - 2019-09-11
|
7
|
+
### Changed
|
8
|
+
- Edited help text for cluster creation to clarify application name discovery
|
9
|
+
- Changed applications list and applications show to show dependencies of those applications
|
10
|
+
### Added
|
11
|
+
- Alias `kubeconfig` for `config` in kubernetes command
|
12
|
+
|
6
13
|
## [0.3.16] - 2019-09-09
|
7
14
|
### Fixed
|
8
15
|
- Fixed bug when launching a Kubernetes cluster without any applications
|
data/Gemfile.lock
CHANGED
data/lib/civo_cli/version.rb
CHANGED
data/lib/kubernetes.rb
CHANGED
@@ -92,6 +92,7 @@ module CivoCLI
|
|
92
92
|
puts e.result.reason.colorize(:red)
|
93
93
|
exit 1
|
94
94
|
end
|
95
|
+
map "kubeconfig" => "config"
|
95
96
|
|
96
97
|
desc "create [NAME] [...]", "create a new kubernetes cluster with the specified name and provided options"
|
97
98
|
option :size, default: 'g2.medium', banner: 'size'
|
@@ -105,7 +106,7 @@ module CivoCLI
|
|
105
106
|
\x5\x5Optional parameters are as follows:
|
106
107
|
\x5 --size=<instance_size> - 'g2.medium' if blank. List of sizes and codes to use can be found through `civo sizes`
|
107
108
|
\x5 --nodes=<count> - '3' if blank
|
108
|
-
\x5 --applications=name1,name2 - optional, use names
|
109
|
+
\x5 --applications=name1,name2 - optional, use names shown by running `civo applications`
|
109
110
|
\x5 --wait - wait for build to complete and show status. Off by default.
|
110
111
|
\x5 --save - save resulting configuration to ~/.kube/config (requires kubectl and the --wait option)
|
111
112
|
\x5 --switch - switch context to newly-created cluster (requires kubectl and the --wait and --save options, as well as existing kubeconfig file)
|
@@ -19,10 +19,16 @@ module CivoCLI
|
|
19
19
|
else
|
20
20
|
plans = "Not applicable"
|
21
21
|
end
|
22
|
+
dependencies = app.dependencies&.items
|
23
|
+
if dependencies.present?
|
24
|
+
dependencies = dependencies.map {|d| d}.join(", ")
|
25
|
+
else
|
26
|
+
dependencies = " "
|
27
|
+
end
|
22
28
|
|
23
|
-
rows << [app.name, app.version, app.category, plans]
|
29
|
+
rows << [app.name, app.version, app.category, plans, dependencies]
|
24
30
|
end
|
25
|
-
puts Terminal::Table.new headings: ['Name', 'Version', 'Category', 'Plans'], rows: rows
|
31
|
+
puts Terminal::Table.new headings: ['Name', 'Version', 'Category', 'Plans', 'Dependencies'], rows: rows
|
26
32
|
end
|
27
33
|
rescue Flexirest::HTTPForbiddenClientException
|
28
34
|
reject_user_access
|
@@ -42,6 +48,7 @@ module CivoCLI
|
|
42
48
|
puts " Maintainer : #{app.maintainer}"
|
43
49
|
puts " URL : #{app.url}"
|
44
50
|
puts " Description : #{app.description}"
|
51
|
+
puts " Dependencies : #{app.dependencies.join(", ")}"
|
45
52
|
rescue Flexirest::HTTPException => e
|
46
53
|
puts e.result.reason.colorize(:red)
|
47
54
|
exit 1
|
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.3.
|
4
|
+
version: 0.3.17
|
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-09-
|
13
|
+
date: 2019-09-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
- !ruby/object:Gem::Version
|
253
253
|
version: '0'
|
254
254
|
requirements: []
|
255
|
-
rubygems_version: 3.0.
|
255
|
+
rubygems_version: 3.0.3
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: CLI for interacting with Civo.com
|