civo_cli 0.2.1 → 0.2.2

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: '085b0fdf6dace975f491ffd959fe2f83aaf08a1d501578bbc7418f52ad41cb3f'
4
- data.tar.gz: 90a78106889a7c40a24265be90a407e880f453bbe918654ff48f3fa1b3ad7b25
3
+ metadata.gz: 7f889f67630dde4f1c1a12f95dbeb7a907bdd076c6a2bfa188cbe16ee6239aad
4
+ data.tar.gz: d14bf6d4b0f78ab145a59a5410d789b5f17a0ea2880426ce41dd44b86ec08914
5
5
  SHA512:
6
- metadata.gz: 5afb2c31af94ee036dc504296187a4c96a153cc400ef00899a80a847bbe936a10b50ed3565f7c5adedfbdfa9cbf0e9d79484d3e365e546c4c6948da173a37fca
7
- data.tar.gz: d86a9d5f898045597f88ebb58008e2dea7b73e0126ec36a5191482a6ce11b6ea499a5f860cc1aae73024b73be02f954110ecdd7feb8fcfb051c6a681f1a53385
6
+ metadata.gz: f1aa979054fb618830f244f2f8bda5bfcc8ec4344d202a2a31d4b0fba8689bc75075c4c2941763515d706b4d74eee9ca8c95215c9d02f7a94239bfe33ab2ce1f
7
+ data.tar.gz: 94761e3c35048cd897f3ea6bd1a1d49a5f1fed3bf8b4fa33940715fea1cf7e4a6a38d49ded4f03053a36377d89a387fbdadbacce9693d941fad5ebb20b1c1788
data/CHANGELOG.md CHANGED
@@ -3,16 +3,21 @@ 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.2.2] - 2019-06.19
7
+ ### Fixes
8
+ - Fixes .json file check and removes file check at runtime ("if __FILE__ == $0
9
+ ").
10
+
6
11
  ## [0.2.1] - 2019-06-19
7
12
  ### Added
8
13
  - Kai Hoffman as author
9
14
 
10
15
  ## [0.2.0] - 2019-06-19
11
- ### API endpoints implemented
12
- - Implemented APIkey, Blueprint, Domain, Domainrecord, Firewall, Instance, Network, Quota, Region, Size, Snapshot, SSHKey, Template and Volume endpoints
16
+ ### Added
17
+ - Implemented commands for APIkey, Blueprint, Domain, Domainrecord, Firewall, Instance, Network, Quota, Region, Size, Snapshot, SSHKey, Template and Volume management
13
18
 
14
19
  ## [0.12.0] - 2017-06-20
15
20
  ### Rewrote
16
- - Written new version in Ruby for ease of maintenance that replaces the old [Go-based CLI](https://github.com/absolutedevops/civo)
21
+ - Written new version in Ruby for ease of maintenance that replaces the old [Go-based CLI](https://github.com/civo/cli-legacy)
17
22
 
18
23
  [1.0.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.3.0...v1.0.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- civo_cli (0.2.1)
4
+ civo_cli (0.2.2)
5
5
  civo (>= 1.1.14)
6
6
  colorize
7
7
  json
data/exe/civo CHANGED
@@ -3,4 +3,4 @@
3
3
  require "bundler/setup"
4
4
  require "civo_cli"
5
5
 
6
- CivoCLI::Main.start(ARGV) if __FILE__ == $0
6
+ CivoCLI::Main.start(ARGV)
@@ -1,3 +1,3 @@
1
1
  module CivoCLI
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
data/lib/config.rb CHANGED
@@ -26,6 +26,7 @@ module CivoCLI
26
26
  end
27
27
 
28
28
  def self.delete_apikey(key)
29
+ set_current_apikey_name(key)
29
30
  current["apikeys"].delete(key)
30
31
  if get_current_apikey_name == key
31
32
  if get_apikeys.any?
@@ -50,7 +51,7 @@ module CivoCLI
50
51
  def self.current
51
52
  @config ||= JSON.parse(File.read(filename))
52
53
  rescue
53
- @config = {}
54
+ @config = {"apikeys" => {}, "meta" => {"current_apikey" => nil, "default_region" => "lon1", "latest_release_check" => "2017-06-01T15:35:42+01:00", "url" => "https://api.civo.com"}}
54
55
  end
55
56
 
56
57
  def self.reset
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries