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 +4 -4
- data/CHANGELOG.md +8 -3
- data/Gemfile.lock +1 -1
- data/exe/civo +1 -1
- data/lib/civo_cli/version.rb +1 -1
- data/lib/config.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f889f67630dde4f1c1a12f95dbeb7a907bdd076c6a2bfa188cbe16ee6239aad
|
|
4
|
+
data.tar.gz: d14bf6d4b0f78ab145a59a5410d789b5f17a0ea2880426ce41dd44b86ec08914
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
###
|
|
12
|
-
- Implemented APIkey, Blueprint, Domain, Domainrecord, Firewall, Instance, Network, Quota, Region, Size, Snapshot, SSHKey, Template and Volume
|
|
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/
|
|
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
data/exe/civo
CHANGED
data/lib/civo_cli/version.rb
CHANGED
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
|