knife-digital_ocean 0.0.2 → 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.
- data/README.md +3 -1
- data/lib/chef/knife/digital_ocean_droplet_create.rb +21 -0
- data/lib/knife-digital_ocean/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -44,7 +44,7 @@ This plugin provides the following sub-commands:
|
|
|
44
44
|
|
|
45
45
|
## Configuration
|
|
46
46
|
|
|
47
|
-
The best way is to put your API-credentials of DigitalOcean in your knife.rb file of choice:
|
|
47
|
+
The best way is to put your API-credentials of DigitalOcean in your knife.rb file of choice (e.g. in ```~/.chef/knife.rb```):
|
|
48
48
|
|
|
49
49
|
```ruby
|
|
50
50
|
knife[:digital_ocean_client_id] = 'XXXXXXXXXXXX'
|
|
@@ -238,3 +238,5 @@ Apache 2.0 (like Chef itself), see LICENSE.txt file.
|
|
|
238
238
|
## Copyright
|
|
239
239
|
|
|
240
240
|
Copyright © 2013 [Roland Moriz](https://roland.io), [Moriz GmbH](https://moriz.de/)
|
|
241
|
+
|
|
242
|
+
[](http://www.linkedin.com/in/rmoriz)
|
|
@@ -81,6 +81,27 @@ class Chef
|
|
|
81
81
|
:proc => lambda { |o| o.split(/[\s,]+/) },
|
|
82
82
|
:default => []
|
|
83
83
|
|
|
84
|
+
option :template_file,
|
|
85
|
+
:long => "--template-file TEMPLATE",
|
|
86
|
+
:description => "Full path to location of template to use",
|
|
87
|
+
:proc => Proc.new { |t| Chef::Config[:knife][:template_file] = t },
|
|
88
|
+
:default => false
|
|
89
|
+
|
|
90
|
+
option :host_key_verify,
|
|
91
|
+
:long => "--[no-]host-key-verify",
|
|
92
|
+
:description => "Verify host key, enabled by default",
|
|
93
|
+
:boolean => true,
|
|
94
|
+
:default => true
|
|
95
|
+
|
|
96
|
+
option :prerelease,
|
|
97
|
+
:long => "--prerelease",
|
|
98
|
+
:description => "Install the pre-release chef gems"
|
|
99
|
+
|
|
100
|
+
option :bootstrap_version,
|
|
101
|
+
:long => "--bootstrap-version VERSION",
|
|
102
|
+
:description => "The version of Chef to install",
|
|
103
|
+
:proc => Proc.new { |v| Chef::Config[:knife][:bootstrap_version] = v }
|
|
104
|
+
|
|
84
105
|
def run
|
|
85
106
|
$stdout.sync = true
|
|
86
107
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: knife-digital_ocean
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-02-
|
|
12
|
+
date: 2013-02-18 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: chef
|
|
@@ -195,7 +195,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
195
195
|
version: '0'
|
|
196
196
|
segments:
|
|
197
197
|
- 0
|
|
198
|
-
hash:
|
|
198
|
+
hash: 2734639922170328122
|
|
199
199
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
200
|
none: false
|
|
201
201
|
requirements:
|
|
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
204
204
|
version: '0'
|
|
205
205
|
segments:
|
|
206
206
|
- 0
|
|
207
|
-
hash:
|
|
207
|
+
hash: 2734639922170328122
|
|
208
208
|
requirements: []
|
|
209
209
|
rubyforge_project:
|
|
210
210
|
rubygems_version: 1.8.23
|