civo_cli 0.3.16 → 0.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4db072ef6e20f75b39960755c83cce96050fb9770effa0754383321d9cfc4dd
4
- data.tar.gz: ad0efd21b84e573f449787b160b6f193fb9baeadd8667ef4ef446781edee6063
3
+ metadata.gz: f28db3afa45bde614833b595a4eb92bc274755f6a7440532e9ed159bb67773b9
4
+ data.tar.gz: 5139b7f529bdbcdaf2b6e87541a7e05421b9393b83e5fb26af2d1ef4e3cd9bc8
5
5
  SHA512:
6
- metadata.gz: 2b91a9735380b97f8f30aef6431ca07f504dc41859fdc17ac5b78ed73cc4d50102b74722bc8ab7bc2117b1d8e32593ed2b20930b7454ab855591b6d122bdb007
7
- data.tar.gz: 2136c67d839f0888b619b0d246c9e29f4aeea1866b07c752cc9b78872eab2ecb1d18f241befbf612edeb44744c647803f7be04788ce3254ba31a6eb312e3a271
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civo_cli (0.3.16)
4
+ civo_cli (0.3.17)
5
5
  bundler (~> 1.17)
6
6
  civo (>= 1.2.8)
7
7
  colorize
@@ -1,3 +1,3 @@
1
1
  module CivoCLI
2
- VERSION = "0.3.16"
2
+ VERSION = "0.3.17"
3
3
  end
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 from civo applications
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.16
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-09 00:00:00.000000000 Z
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.6
255
+ rubygems_version: 3.0.3
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: CLI for interacting with Civo.com