cloudstack-cli 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/cloudstack-cli.gemspec +1 -1
- data/lib/cloudstack-cli/commands/ssh_key_pairs.rb +18 -1
- data/lib/cloudstack-cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9319ee3b755b7ea9fcbe25c6bbe17899d8ff621
|
4
|
+
data.tar.gz: 648484a15d8c0f40ce3788df95002f90d0f7da31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7ff140daeca54c0247daa9ce41f681508fd88d8f57208fcf0a4b9824bf8d3e393a1718e63eb298d5bed1181bfaf367105b238a7ee4144b1500ece2c5ce93621
|
7
|
+
data.tar.gz: 2a10cee22d9954813912de7b5acead1ad35a9e1f58666afe87ddca33e63ab75b21db19bd968e58354cd13d2b6b615b118212b9144f6c719eb63b37d2dc9b90fd
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cloudstack-cli (0.4.
|
5
|
-
cloudstack_client (~> 0.2.
|
4
|
+
cloudstack-cli (0.4.3)
|
5
|
+
cloudstack_client (~> 0.2.14)
|
6
6
|
thor (~> 0.18.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
cloudstack_client (0.2.
|
11
|
+
cloudstack_client (0.2.14)
|
12
12
|
json (1.8.1)
|
13
13
|
rake (10.0.4)
|
14
14
|
rdoc (4.0.1)
|
data/cloudstack-cli.gemspec
CHANGED
@@ -20,7 +20,6 @@ class SshKeyPair < CloudstackCli::Base
|
|
20
20
|
desc 'ssh_key_pair create NAME', 'create ssh key pair'
|
21
21
|
option :account
|
22
22
|
option :project
|
23
|
-
option :public_key
|
24
23
|
def create(name)
|
25
24
|
pair = client.create_ssh_key_pair(name, options)
|
26
25
|
say "Name : #{pair['name']}"
|
@@ -29,6 +28,24 @@ class SshKeyPair < CloudstackCli::Base
|
|
29
28
|
say pair['privatekey']
|
30
29
|
end
|
31
30
|
|
31
|
+
desc 'ssh_key_pair register NAME', 'register ssh key pair'
|
32
|
+
option :account
|
33
|
+
option :project
|
34
|
+
option :public_key, required: true, desc: "path to public_key file"
|
35
|
+
def register(name)
|
36
|
+
if File.exist?(options[:public_key])
|
37
|
+
public_key = IO.read(options[:public_key])
|
38
|
+
else
|
39
|
+
say("Can't open public key #{options[:public_key]}", :red)
|
40
|
+
exit 1
|
41
|
+
end
|
42
|
+
pair = client.register_ssh_key_pair(name, public_key, options)
|
43
|
+
say "Name : #{pair['name']}"
|
44
|
+
say "Fingerprint : #{pair['fingerprint']}"
|
45
|
+
say "Privatekey:"
|
46
|
+
say pair['privatekey']
|
47
|
+
end
|
48
|
+
|
32
49
|
desc 'ssh_key_pair delete NAME', 'delete ssh key pair'
|
33
50
|
option :account
|
34
51
|
option :project
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudstack-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nik Wolfgramm
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.2.
|
61
|
+
version: 0.2.14
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.2.
|
68
|
+
version: 0.2.14
|
69
69
|
description: cloudstack-cli is a CloudStack API client written in Ruby.
|
70
70
|
email:
|
71
71
|
- nik.wolfgramm@gmail.com
|