ding 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/ding/cli.rb +5 -4
- data/lib/ding/models/ssh.rb +1 -0
- data/lib/ding/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c57976d3748113f6f807069cc044723d7a9c1f8
|
4
|
+
data.tar.gz: ea136b13097e3e23c9a89f964c2685e9abb60913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e9fdc09785778e88935c58de290e5072ca1720e54cc2b28f8065f610d061a1496196b4cb6ce5191aa87489e0daa8b90ffe8d5e1892afca03a510c3834b2680b
|
7
|
+
data.tar.gz: 1612791cb5c731e7bd05a04cb39013a351a3a9eccced61cb0d88c7d0fefe6676e8d16d3baa9cd23c4e2a798504a150a4c889bbb0b86b0fe12d721b6362cae851
|
data/README.md
CHANGED
@@ -74,6 +74,7 @@ it can be pasted into the users account on bitbucket.org.
|
|
74
74
|
# Default: bitbucket.org
|
75
75
|
-n, [--name=NAME] # name for key, defaults to host name
|
76
76
|
-p, [--passphrase=PASSPHRASE] # optional passphrase for key
|
77
|
+
-s, [--secure], [--no-secure] # secure hosts do not need strict host key checking
|
77
78
|
-t, [--type=TYPE] # type of key to create per -t option on ssh-keygen
|
78
79
|
# Default: rsa
|
79
80
|
|
data/lib/ding/cli.rb
CHANGED
@@ -46,10 +46,11 @@ module Ding
|
|
46
46
|
end
|
47
47
|
|
48
48
|
desc "key-gen", "Create a new private/public key pair and associated ssh config"
|
49
|
-
option :host, type: 'string',
|
50
|
-
option :name, type: 'string',
|
51
|
-
option :passphrase, type: 'string',
|
52
|
-
option :
|
49
|
+
option :host, type: 'string', aliases: '-h', default: 'bitbucket.org', desc: 'specify repository host for ssh config'
|
50
|
+
option :name, type: 'string', aliases: '-n', default: nil, desc: 'name for key, defaults to host name'
|
51
|
+
option :passphrase, type: 'string', aliases: '-p', default: '', desc: 'optional passphrase for key'
|
52
|
+
option :secure, type: 'boolean', aliases: '-s', default: true, desc: 'secure hosts do not need strict host key checking'
|
53
|
+
option :type, type: 'string', aliases: '-t', default: 'rsa', desc: 'type of key to create per -t option on ssh-keygen'
|
53
54
|
def key_gen
|
54
55
|
key_name = options[:name] || "#{options[:host]}_#{options[:type]}"
|
55
56
|
say "\nDing ding ding: let's create and configure a new ssh key #{key_name}...\n\n", :green
|
data/lib/ding/models/ssh.rb
CHANGED
data/lib/ding/version.rb
CHANGED