civo_cli 0.3.8 → 0.3.9

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: ae09d94dc0ab12adb12d5424aad52d46a65a6ac3b563a64c436198bbc17c238d
4
- data.tar.gz: f3486ad40198a396d5aec665c45b3e33bf9c371314970b468cec8dd7180b0165
3
+ metadata.gz: d62448379809416dbb023c5af87507ea6d678b099919e82a4ea0b5c3edf5f23f
4
+ data.tar.gz: dadd6536e7152e2b8d40495aa4b0cccc9e57afae69dac56505d2dfd8227073c0
5
5
  SHA512:
6
- metadata.gz: d89090b94bc2c36f05dd653e02ab8c039c5d18aabfbc23e17bed57c0c590947a63a67dfbe66dee4bc77d521b7e54476dbc017bf3e74d0424a01ee686fb8db22b
7
- data.tar.gz: 49af682ad030e14a1bacf652a51c47ccf08a4cc50670b571ac0ed36e0556eb9ff4885391182e89f892c8e3963ccc4491fe463155974b0dcd68c9a0451b729e51
6
+ metadata.gz: fa11fc73c7c3cecafc93757f7b4273a9a544998b3dee4c9a33feadc93138bb998f7b64ab43dee1a4e3eb56a1e90f8c2c0c9f6272ca0b36aab52163123a6e97dc
7
+ data.tar.gz: c047daf2274eeb5c9eddc595f80c8d52764f317a3bb90b8bfad4a70e507f8245529699eb3b4a9c17f59fcc0d1c13fe840d81eddebb4a4b9c9f1fdfdc007ea77c
data/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@ 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.8] - 2019-08-12
7
+ ### Added
8
+ - Time taken for a `create` command appended with `--wait`.
9
+ ### Fixed
10
+ - Kubernetes cluster `--wait` command to correctly detect ready state to output time.
11
+ - Issue with file requires preventing Ubuntu machines from running the gem.
12
+ - Error in parsing `instance create` without other switches to create default instance with generated name.
13
+
6
14
  ## [0.3.8] - 2019-07-26
7
15
  ### Fixed
8
16
  - Kubernetes cluster launches now wait for the master to be ready, not necessarily all nodes.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civo_cli (0.3.8)
4
+ civo_cli (0.3.9)
5
5
  bundler (~> 1.17)
6
6
  civo (>= 1.2.5)
7
7
  colorize
data/README.md CHANGED
@@ -84,7 +84,7 @@ You can create an instance by running `civo instance create` with a hostname par
84
84
 
85
85
  Example usage:
86
86
  ```
87
- $ civo instance create api-demo.test --size g2.small --template=811a8dfb-8202-49ad-b1ef-1e6320b20497 --initial_user=demo-user
87
+ $ civo instance create --name=api-demo.test --size g2.small --template=811a8dfb-8202-49ad-b1ef-1e6320b20497 --initial_user=demo-user
88
88
  Created instance api-demo.test
89
89
 
90
90
  $ civo instance show api-demo.test
@@ -1,3 +1,3 @@
1
1
  module CivoCLI
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
data/lib/civo_cli.rb CHANGED
@@ -1,10 +1,10 @@
1
1
  require "civo_cli/version"
2
-
3
2
  require "civo"
4
3
  require "json"
5
4
  require "thor"
6
5
  require "terminal-table"
7
6
  require 'colorize'
7
+ require 'config'
8
8
  Dir[File.join(__dir__, '*.rb')].each { |file| require file }
9
9
 
10
10
  module CivoCLI
data/lib/instance.rb CHANGED
@@ -5,6 +5,7 @@ module CivoCLI
5
5
  DEFAULT_INITIAL_USER = 'civo'
6
6
  DEFAULT_PUBLIC_IP = 'true'
7
7
  DEFAULT_TEMPLATE = '811a8dfb-8202-49ad-b1ef-1e6320b20497'
8
+ DEFAULT_HOSTNAME = CivoCLI::NameGenerator.create
8
9
 
9
10
  desc "list", "list all instances"
10
11
  def list
@@ -86,8 +87,8 @@ module CivoCLI
86
87
  end
87
88
  map "get" => "show", "inspect" => "show"
88
89
 
89
- desc "create [HOSTNAME] [...]", "create a new instance with specified hostname and provided options"
90
- option :name, aliases: '--hostname', banner: 'hostname'
90
+ desc "create [--name=HOSTNAME] [...]", "create a new instance with specified hostname and provided options"
91
+ option :name, default: DEFAULT_HOSTNAME, aliases: '--hostname', banner: 'hostname'
91
92
  option :size, default: DEFAULT_SIZE, banner: 'instance_size_code'
92
93
  option :region, default: DEFAULT_REGION, banner: 'civo_region'
93
94
  option :public_ip, default: DEFAULT_PUBLIC_IP, banner: 'true | false | from [instance_id]'
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.8
4
+ version: 0.3.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-07-26 00:00:00.000000000 Z
13
+ date: 2019-08-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -247,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  - !ruby/object:Gem::Version
248
248
  version: '0'
249
249
  requirements: []
250
- rubygems_version: 3.0.1
250
+ rubygems_version: 3.0.3
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: CLI for interacting with Civo.com