civo_cli 0.3.19 → 0.4.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: 759c5158aaf115ee71ab2c19c231b6707a141d7a075830c0c518758ac9474d59
4
- data.tar.gz: 65f6d1957c272685d15d1c64960498656bdab052d95c07142cbc921834510167
3
+ metadata.gz: b2036f8ca9f8bf23a3a130c98784aca3fc974f0798d8550334a87ef51b66a9d5
4
+ data.tar.gz: 748c9360b9333a653e987886754cc287bb2ab11664d2d70eaa686966909f87be
5
5
  SHA512:
6
- metadata.gz: f86b8c07311376c366306271ba959ae31f2941144fe086c4d2a99457cb6ac6a2286ff1407bfb410948a4bbc5b1f5f7a79bd076343b26c4f6e970c0eb1107ab1a
7
- data.tar.gz: 34d693db9c65f4707ff71a56eb0424455d3ea6402fbfb5f0f5aa98481ad2f3e1d43209658dcbe10a064d96549a9d9308adc9a74d6e023367f811e2d1b51d6de1
6
+ metadata.gz: 44339de9ba2c6d0f4f7b604554340efd01adc614c50bf8f5f64e439b1622f78de3b1f37540dc9e0e4694794eb619f2d68208e7670e2e490b3dfb15fb727970fd
7
+ data.tar.gz: e5162bb097e7ad7e1ff60da14192d17235d575ff43f15ff148e9f69320bda502cd64a33be518983a3eabbce038c8737b0f3a25b2f47f654dde3f41394ed6462c
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.0] - 2019-09-17
7
+ ### Changed
8
+ - Now the capability exists for pre-installed applications in a cluster, ensure they aren't manually installed
9
+
6
10
  ## [0.3.19] - 2019-09-11
7
11
  ### Added
8
12
  - Added aliases for `--applications` when creating a cluster
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civo_cli (0.3.19)
4
+ civo_cli (0.4.0)
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.19"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/kubernetes.rb CHANGED
@@ -118,6 +118,10 @@ module CivoCLI
118
118
  (options[:applications] || "").split(",").map(&:chomp).each do |name|
119
119
  name, plan = name.split(":")
120
120
  app = Finder.detect_app(name)
121
+ if app.default # Will be installed by default
122
+ next
123
+ end
124
+
121
125
  plans = app.plans&.items
122
126
 
123
127
  if app && plans.present? && plan.blank?
@@ -57,7 +57,7 @@ module CivoCLI
57
57
 
58
58
 
59
59
  desc "add NAME --cluster=...", "add the marketplace application to a Kubernetes cluster by ID or name"
60
- option :cluster
60
+ option :cluster, required: true
61
61
  long_desc <<-LONGDESC
62
62
  Use --cluster=name to specify part of the ID or name of the cluster to add the application to
63
63
  LONGDESC
@@ -65,6 +65,10 @@ module CivoCLI
65
65
  CivoCLI::Config.set_api_auth
66
66
  name, plan = name.split(":")
67
67
  app = Finder.detect_app(name)
68
+ if app.default
69
+ puts "You cannot choose to install #{app.name}".colorize(:red) + " because it is a pre-installed application"
70
+ exit 1
71
+ end
68
72
  cluster = Finder.detect_cluster(options[:cluster])
69
73
  plans = app.plans&.items
70
74
 
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.19
4
+ version: 0.4.0
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-11 00:00:00.000000000 Z
13
+ date: 2019-09-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake