knife-joyent 0.0.3 → 0.0.4

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.
@@ -16,19 +16,29 @@ module KnifeJoyent
16
16
  :short => '-U USERNAME',
17
17
  :long => '--joyent-username USERNAME',
18
18
  :description => 'Your Joyent username',
19
- :proc => Proc.new {|key| Chef::Config[:knife][:joyent_username]}
19
+ :proc => Proc.new {|key| Chef::Config[:knife][:joyent_username] = key}
20
20
 
21
21
  option :joyent_password,
22
22
  :short => '-P PASSWORD',
23
23
  :long => '--joyent-password PASSOWRD',
24
24
  :description => 'Your Joyent password',
25
- :proc => Proc.new {|key| Chef::Config[:knife][:joyent_password]}
25
+ :proc => Proc.new {|key| Chef::Config[:knife][:joyent_password] = key }
26
+
27
+ option :joyent_keyname,
28
+ :long => '--joyent-keyname name of ssh key for signature auth',
29
+ :description => 'name of ssh key for signature auth',
30
+ :proc => Proc.new {|key| Chef::Config[:knife][:joyent_keyname] = key }
31
+
32
+ option :joyent_keyfile,
33
+ :long => '--joyent-keyfile path to ssh private key for signature auth',
34
+ :description => 'path to ssh private key for signature auth',
35
+ :proc => Proc.new {|key| Chef::Config[:knife][:joyent_keyfile] = key }
26
36
 
27
37
  option :joyent_url,
28
38
  :short => "-L JOYENT_API_URL",
29
39
  :long => "--joyent-api-url JOYENT_API_URL",
30
40
  :description => "Joyent API URL",
31
- :proc => Proc.new {|key| Chef::Config[:knife][:joyent_url]}
41
+ :proc => Proc.new {|key| Chef::Config[:knife][:joyent_url] = key }
32
42
  end
33
43
 
34
44
  def connection
@@ -37,6 +47,8 @@ module KnifeJoyent
37
47
  :provider => 'Joyent',
38
48
  :joyent_username => Chef::Config[:knife][:joyent_username],
39
49
  :joyent_password => Chef::Config[:knife][:joyent_password],
50
+ :joyent_keyname => Chef::Config[:knife][:joyent_keyname],
51
+ :joyent_keyfile => Chef::Config[:knife][:joyent_keyfile],
40
52
  :joyent_url => Chef::Config[:knife][:joyent_url]
41
53
  )
42
54
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeJoyent
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-joyent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kevin Chan