knife-digital_ocean 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +112 -20
- data/Rakefile +6 -0
- data/knife-digital_ocean.gemspec +4 -0
- data/lib/chef/knife/digital_ocean_base.rb +15 -0
- data/lib/chef/knife/digital_ocean_domain_create.rb +9 -10
- data/lib/chef/knife/digital_ocean_domain_destroy.rb +5 -5
- data/lib/chef/knife/digital_ocean_domain_list.rb +1 -2
- data/lib/chef/knife/digital_ocean_domain_record_create.rb +18 -18
- data/lib/chef/knife/digital_ocean_domain_record_destroy.rb +9 -10
- data/lib/chef/knife/digital_ocean_domain_record_edit.rb +21 -21
- data/lib/chef/knife/digital_ocean_domain_record_list.rb +4 -5
- data/lib/chef/knife/digital_ocean_droplet_create.rb +4 -5
- data/lib/chef/knife/digital_ocean_droplet_destroy.rb +3 -6
- data/lib/chef/knife/digital_ocean_droplet_power.rb +66 -0
- data/lib/chef/knife/digital_ocean_droplet_powercycle.rb +48 -0
- data/lib/chef/knife/digital_ocean_droplet_reboot.rb +48 -0
- data/lib/chef/knife/digital_ocean_droplet_rebuild.rb +58 -0
- data/lib/chef/knife/digital_ocean_droplet_rename.rb +58 -0
- data/lib/chef/knife/digital_ocean_droplet_resize.rb +58 -0
- data/lib/chef/knife/digital_ocean_droplet_snapshot.rb +58 -0
- data/lib/chef/knife/digital_ocean_image_destroy.rb +42 -0
- data/lib/chef/knife/digital_ocean_image_list.rb +1 -1
- data/lib/chef/knife/digital_ocean_image_transfer.rb +66 -0
- data/lib/chef/knife/digital_ocean_region_list.rb +1 -1
- data/lib/chef/knife/digital_ocean_sshkey_create.rb +11 -11
- data/lib/chef/knife/digital_ocean_sshkey_destroy.rb +6 -6
- data/lib/chef/knife/digital_ocean_sshkey_list.rb +1 -1
- data/lib/knife-digital_ocean/version.rb +1 -1
- data/spec/fixtures/keys/id_rsa.pub +1 -0
- data/spec/fixtures/vcr_cassettes/accountinfo.yml +7 -9
- data/spec/fixtures/vcr_cassettes/domain_create.yml +65 -0
- data/spec/fixtures/vcr_cassettes/{domainlist.yml → domain_list.yml} +15 -12
- data/spec/fixtures/vcr_cassettes/domain_record_create.yml +65 -0
- data/spec/fixtures/vcr_cassettes/domain_record_list.yml +63 -0
- data/spec/fixtures/vcr_cassettes/droplet.yml +12 -17
- data/spec/fixtures/vcr_cassettes/droplet_power.yml +65 -0
- data/spec/fixtures/vcr_cassettes/droplet_powercycle.yml +127 -0
- data/spec/fixtures/vcr_cassettes/droplet_reboot.yml +127 -0
- data/spec/fixtures/vcr_cassettes/droplet_rebuild.yml +65 -0
- data/spec/fixtures/vcr_cassettes/droplet_rename.yml +127 -0
- data/spec/fixtures/vcr_cassettes/droplet_resize.yml +65 -0
- data/spec/fixtures/vcr_cassettes/droplet_snapshot.yml +1057 -0
- data/spec/fixtures/vcr_cassettes/image.yml +55 -59
- data/spec/fixtures/vcr_cassettes/public_images.yml +54 -59
- data/spec/fixtures/vcr_cassettes/region.yml +8 -10
- data/spec/fixtures/vcr_cassettes/sizes.yml +8 -10
- data/spec/fixtures/vcr_cassettes/sshkey.yml +8 -10
- data/spec/fixtures/vcr_cassettes/sshkey_create.yml +68 -0
- data/spec/lib/chef/knife/digital_ocean_account_info_spec.rb +4 -4
- data/spec/lib/chef/knife/digital_ocean_domain_create_spec.rb +35 -1
- data/spec/lib/chef/knife/digital_ocean_domain_list_spec.rb +8 -9
- data/spec/lib/chef/knife/digital_ocean_domain_record_create_spec.rb +37 -1
- data/spec/lib/chef/knife/digital_ocean_domain_record_list_spec.rb +34 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_create_spec.rb +5 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_list_spec.rb +4 -4
- data/spec/lib/chef/knife/digital_ocean_droplet_power_spec.rb +39 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_powercycle_spec.rb +38 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_reboot_spec.rb +38 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_rebuild_spec.rb +39 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_rename_spec.rb +39 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_resize_spec.rb +39 -0
- data/spec/lib/chef/knife/digital_ocean_droplet_snapshot_spec.rb +39 -0
- data/spec/lib/chef/knife/digital_ocean_image_list_spec.rb +8 -10
- data/spec/lib/chef/knife/digital_ocean_region_list_spec.rb +4 -4
- data/spec/lib/chef/knife/digital_ocean_size_list_spec.rb +4 -4
- data/spec/lib/chef/knife/digital_ocean_sshkey_create_spec.rb +35 -1
- data/spec/lib/chef/knife/digital_ocean_sshkey_list_spec.rb +4 -4
- data/spec/spec_helper.rb +29 -2
- metadata +93 -6
- data/spec/lib/chef/knife/digital_ocean_domain_record_edit_spec.rb +0 -5
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Chef::Knife::DigitalOceanDropletRename do
|
4
|
+
|
5
|
+
subject { Chef::Knife::DigitalOceanDropletRename.new }
|
6
|
+
|
7
|
+
let(:access_token) { ENV['DIGITALOCEAN_ACCESS_TOKEN'] }
|
8
|
+
|
9
|
+
before :each do
|
10
|
+
Chef::Knife::DigitalOceanDropletRename.load_deps
|
11
|
+
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
|
+
allow(subject).to receive(:puts)
|
13
|
+
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
+
subject.config[:id] = '3193966'
|
15
|
+
subject.config[:name] = 'ilikelamp.com'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
|
+
VCR.use_cassette('droplet_rename') do
|
21
|
+
expect(subject).to receive(:validate!)
|
22
|
+
subject.run
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should rename the droplet and exit with 0' do
|
27
|
+
VCR.use_cassette('droplet_rename') do
|
28
|
+
allow(subject.client).to receive_message_chain(:droplet_actions, :rename)
|
29
|
+
expect { subject.run }.not_to raise_error
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should return OK' do
|
34
|
+
VCR.use_cassette('droplet_rename') do
|
35
|
+
expect(subject.run).to eq 'OK'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Chef::Knife::DigitalOceanDropletResize do
|
4
|
+
|
5
|
+
subject { Chef::Knife::DigitalOceanDropletResize.new }
|
6
|
+
|
7
|
+
let(:access_token) { ENV['DIGITALOCEAN_ACCESS_TOKEN'] }
|
8
|
+
|
9
|
+
before :each do
|
10
|
+
Chef::Knife::DigitalOceanDropletResize.load_deps
|
11
|
+
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
|
+
allow(subject).to receive(:puts)
|
13
|
+
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
+
subject.config[:id] = '3195306'
|
15
|
+
subject.config[:size] = '1gb'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
|
+
VCR.use_cassette('droplet_resize') do
|
21
|
+
expect(subject).to receive(:validate!)
|
22
|
+
subject.run
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should resize the droplet and exit with 0' do
|
27
|
+
VCR.use_cassette('droplet_resize') do
|
28
|
+
allow(subject.client).to receive_message_chain(:droplet_actions, :resize)
|
29
|
+
expect { subject.run }.not_to raise_error
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should return OK' do
|
34
|
+
VCR.use_cassette('droplet_resize') do
|
35
|
+
expect(subject.run).to eq 'OK'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Chef::Knife::DigitalOceanDropletSnapshot do
|
4
|
+
|
5
|
+
subject { Chef::Knife::DigitalOceanDropletSnapshot.new }
|
6
|
+
|
7
|
+
let(:access_token) { ENV['DIGITALOCEAN_ACCESS_TOKEN'] }
|
8
|
+
|
9
|
+
before :each do
|
10
|
+
Chef::Knife::DigitalOceanDropletSnapshot.load_deps
|
11
|
+
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
|
+
allow(subject).to receive(:puts)
|
13
|
+
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
+
subject.config[:id] = '3193966'
|
15
|
+
subject.config[:name] = 'ilikelamp-snapshots'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
|
+
VCR.use_cassette('droplet_snapshot') do
|
21
|
+
expect(subject).to receive(:validate!)
|
22
|
+
subject.run
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'should snapshot the droplet and exit with 0' do
|
27
|
+
VCR.use_cassette('droplet_snapshot') do
|
28
|
+
allow(subject.client).to receive_message_chain(:droplet_actions, :snapshot)
|
29
|
+
expect { subject.run }.not_to raise_error
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
it 'should return OK' do
|
34
|
+
VCR.use_cassette('droplet_snapshot') do
|
35
|
+
expect(subject.run).to eq 'OK'
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -1,7 +1,5 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
3
|
describe Chef::Knife::DigitalOceanImageList do
|
6
4
|
|
7
5
|
subject { Chef::Knife::DigitalOceanImageList.new }
|
@@ -14,32 +12,32 @@ describe Chef::Knife::DigitalOceanImageList do
|
|
14
12
|
allow(subject).to receive(:puts)
|
15
13
|
end
|
16
14
|
|
17
|
-
describe
|
18
|
-
it
|
15
|
+
describe '#run' do
|
16
|
+
it 'should validate the Digital Ocean config keys exist' do
|
19
17
|
VCR.use_cassette('image') do
|
20
18
|
expect(subject).to receive(:validate!)
|
21
19
|
subject.run
|
22
20
|
end
|
23
21
|
end
|
24
22
|
|
25
|
-
it
|
23
|
+
it 'should output the column headers' do
|
26
24
|
VCR.use_cassette('image') do
|
27
25
|
expect(subject).to receive(:puts).with(/^ID\s+Distribution\s+Name\s+Slug\n/)
|
28
26
|
subject.run
|
29
27
|
end
|
30
28
|
end
|
31
29
|
|
32
|
-
it
|
30
|
+
it 'should output a list of the available Digital Ocean Images' do
|
33
31
|
VCR.use_cassette('image') do
|
34
|
-
expect(subject).to receive(:puts).with(/\
|
32
|
+
expect(subject).to receive(:puts).with(/\b7992108\s+Debian\s+Debian test\s+\n/)
|
35
33
|
subject.run
|
36
34
|
end
|
37
35
|
end
|
38
36
|
end
|
39
37
|
|
40
|
-
context
|
41
|
-
describe
|
42
|
-
it
|
38
|
+
context 'public images' do
|
39
|
+
describe '#run' do
|
40
|
+
it 'should output a list of the available Digital Ocean Images' do
|
43
41
|
VCR.use_cassette('public_images') do
|
44
42
|
subject.config[:public_images] = true
|
45
43
|
expect(subject).to receive(:puts).with(/\b6886342\s+CoreOS\s+444.5.0 \(stable\)\s+coreos-stable/)
|
@@ -15,22 +15,22 @@ describe Chef::Knife::DigitalOceanRegionList do
|
|
15
15
|
allow(subject).to receive(:puts)
|
16
16
|
end
|
17
17
|
|
18
|
-
describe
|
19
|
-
it
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
20
|
VCR.use_cassette('region') do
|
21
21
|
expect(subject).to receive(:validate!)
|
22
22
|
subject.run
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
it
|
26
|
+
it 'should output the column headers' do
|
27
27
|
VCR.use_cassette('region') do
|
28
28
|
expect(subject).to receive(:puts).with(/^Name\s+Slug\n/)
|
29
29
|
subject.run
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it 'should output a list of the available Digital Ocean flavors' do
|
34
34
|
VCR.use_cassette('region') do
|
35
35
|
expect(subject).to receive(:puts).with(/\bNew York 1\b/)
|
36
36
|
subject.run
|
@@ -15,22 +15,22 @@ describe Chef::Knife::DigitalOceanSizeList do
|
|
15
15
|
allow(subject).to receive(:puts)
|
16
16
|
end
|
17
17
|
|
18
|
-
describe
|
19
|
-
it
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
20
|
VCR.use_cassette('sizes') do
|
21
21
|
expect(subject).to receive(:validate!)
|
22
22
|
subject.run
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
it
|
26
|
+
it 'should output the column headers' do
|
27
27
|
VCR.use_cassette('sizes') do
|
28
28
|
expect(subject).to receive(:puts).with(/^Slug \n/)
|
29
29
|
subject.run
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it 'should output a list of the available Digital Ocean sizes' do
|
34
34
|
VCR.use_cassette('sizes') do
|
35
35
|
expect(subject).to receive(:puts).with(/\b512mb\b/)
|
36
36
|
subject.run
|
@@ -1,5 +1,39 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Chef::Knife::DigitalOceanSshkeyCreate do
|
4
|
-
|
4
|
+
|
5
|
+
subject { Chef::Knife::DigitalOceanSshkeyCreate.new }
|
6
|
+
|
7
|
+
let(:access_token) { ENV['DIGITALOCEAN_ACCESS_TOKEN'] }
|
8
|
+
|
9
|
+
before :each do
|
10
|
+
Chef::Knife::DigitalOceanSshkeyCreate.load_deps
|
11
|
+
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
|
+
allow(subject).to receive(:puts)
|
13
|
+
subject.config[:name] = 'test-key'
|
14
|
+
subject.config[:public_key] = 'spec/fixtures/keys/id_rsa.pub'
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#run' do
|
18
|
+
it 'should validate the Digital Ocean config keys exist' do
|
19
|
+
VCR.use_cassette('sshkey_create') do
|
20
|
+
expect(subject).to receive(:validate!)
|
21
|
+
subject.run
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
it 'should create the domain and exit with 0' do
|
26
|
+
VCR.use_cassette('sshkey_create') do
|
27
|
+
allow(subject.client).to receive_message_chain(:ssh_keys, :create)
|
28
|
+
expect { subject.run }.not_to raise_error
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should return OK' do
|
33
|
+
VCR.use_cassette('sshkey_create') do
|
34
|
+
expect($stdout).to receive(:puts).with('OK')
|
35
|
+
expect(subject.run).to eq nil
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
5
39
|
end
|
@@ -15,22 +15,22 @@ describe Chef::Knife::DigitalOceanSshkeyList do
|
|
15
15
|
allow(subject).to receive(:puts)
|
16
16
|
end
|
17
17
|
|
18
|
-
describe
|
19
|
-
it
|
18
|
+
describe '#run' do
|
19
|
+
it 'should validate the Digital Ocean config keys exist' do
|
20
20
|
VCR.use_cassette('sshkey') do
|
21
21
|
expect(subject).to receive(:validate!)
|
22
22
|
subject.run
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
-
it
|
26
|
+
it 'should output the column headers' do
|
27
27
|
VCR.use_cassette('sshkey') do
|
28
28
|
expect(subject).to receive(:puts).with(/^ID\s+Name\s+Fingerprint\s+\n/)
|
29
29
|
subject.run
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
it
|
33
|
+
it 'should output a list of the available Digital Ocean ssh keys' do
|
34
34
|
VCR.use_cassette('sshkey') do
|
35
35
|
expect(subject).to receive(:puts).with(/\bgregf\b/)
|
36
36
|
subject.run
|
data/spec/spec_helper.rb
CHANGED
@@ -5,10 +5,19 @@ require 'vcr'
|
|
5
5
|
require 'rspec'
|
6
6
|
require 'chef/knife'
|
7
7
|
require 'coveralls'
|
8
|
+
require 'simplecov'
|
9
|
+
require 'simplecov-console'
|
8
10
|
|
9
11
|
require 'chef/knife/digital_ocean_droplet_create'
|
10
12
|
require 'chef/knife/digital_ocean_droplet_destroy'
|
11
13
|
require 'chef/knife/digital_ocean_droplet_list'
|
14
|
+
require 'chef/knife/digital_ocean_droplet_reboot'
|
15
|
+
require 'chef/knife/digital_ocean_droplet_power'
|
16
|
+
require 'chef/knife/digital_ocean_droplet_powercycle'
|
17
|
+
require 'chef/knife/digital_ocean_droplet_rename'
|
18
|
+
require 'chef/knife/digital_ocean_droplet_snapshot'
|
19
|
+
require 'chef/knife/digital_ocean_droplet_rebuild'
|
20
|
+
require 'chef/knife/digital_ocean_droplet_resize'
|
12
21
|
require 'chef/knife/digital_ocean_image_list'
|
13
22
|
require 'chef/knife/digital_ocean_region_list'
|
14
23
|
require 'chef/knife/digital_ocean_size_list'
|
@@ -28,6 +37,10 @@ VCR.configure do |c|
|
|
28
37
|
c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
|
29
38
|
c.hook_into :webmock
|
30
39
|
c.filter_sensitive_data('FAKE_ACCESS_TOKEN') { ENV['DIGITALOCEAN_ACCESS_TOKEN'] }
|
40
|
+
|
41
|
+
c.before_record do |interaction|
|
42
|
+
filter_headers(interaction, 'Set-Cookie', '_COOKIE_ID_')
|
43
|
+
end
|
31
44
|
end
|
32
45
|
|
33
46
|
# Clear config between each example
|
@@ -35,9 +48,23 @@ end
|
|
35
48
|
RSpec.configure do |c|
|
36
49
|
c.before(:each) do
|
37
50
|
Chef::Config.reset
|
38
|
-
Chef::Config[:knife] ={}
|
51
|
+
Chef::Config[:knife] = {}
|
39
52
|
end
|
40
53
|
end
|
41
54
|
|
42
|
-
|
55
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
56
|
+
Coveralls::SimpleCov::Formatter,
|
57
|
+
SimpleCov::Formatter::HTMLFormatter,
|
58
|
+
SimpleCov::Formatter::Console
|
59
|
+
]
|
60
|
+
SimpleCov.start
|
43
61
|
|
62
|
+
# Cleverly borrowed from knife-rackspace, thank you!
|
63
|
+
def filter_headers(interaction, pattern, placeholder)
|
64
|
+
[interaction.request.headers, interaction.response.headers].each do | headers |
|
65
|
+
sensitive_tokens = headers.select { |key| key.to_s.match(pattern) }
|
66
|
+
sensitive_tokens.each do |key, _value|
|
67
|
+
headers[key] = placeholder
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roland Moriz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-11-
|
12
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -165,6 +165,48 @@ dependencies:
|
|
165
165
|
- - ">="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: countloc
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: simplecov
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
type: :development
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: simplecov-console
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
type: :development
|
204
|
+
prerelease: false
|
205
|
+
version_requirements: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
168
210
|
description: A plugin for chef's knife to manage instances of DigitalOcean servers
|
169
211
|
email:
|
170
212
|
- roland@moriz.de
|
@@ -196,7 +238,16 @@ files:
|
|
196
238
|
- lib/chef/knife/digital_ocean_droplet_create.rb
|
197
239
|
- lib/chef/knife/digital_ocean_droplet_destroy.rb
|
198
240
|
- lib/chef/knife/digital_ocean_droplet_list.rb
|
241
|
+
- lib/chef/knife/digital_ocean_droplet_power.rb
|
242
|
+
- lib/chef/knife/digital_ocean_droplet_powercycle.rb
|
243
|
+
- lib/chef/knife/digital_ocean_droplet_reboot.rb
|
244
|
+
- lib/chef/knife/digital_ocean_droplet_rebuild.rb
|
245
|
+
- lib/chef/knife/digital_ocean_droplet_rename.rb
|
246
|
+
- lib/chef/knife/digital_ocean_droplet_resize.rb
|
247
|
+
- lib/chef/knife/digital_ocean_droplet_snapshot.rb
|
248
|
+
- lib/chef/knife/digital_ocean_image_destroy.rb
|
199
249
|
- lib/chef/knife/digital_ocean_image_list.rb
|
250
|
+
- lib/chef/knife/digital_ocean_image_transfer.rb
|
200
251
|
- lib/chef/knife/digital_ocean_region_list.rb
|
201
252
|
- lib/chef/knife/digital_ocean_size_list.rb
|
202
253
|
- lib/chef/knife/digital_ocean_sshkey_create.rb
|
@@ -204,25 +255,43 @@ files:
|
|
204
255
|
- lib/chef/knife/digital_ocean_sshkey_list.rb
|
205
256
|
- lib/knife-digital_ocean.rb
|
206
257
|
- lib/knife-digital_ocean/version.rb
|
258
|
+
- spec/fixtures/keys/id_rsa.pub
|
207
259
|
- spec/fixtures/vcr_cassettes/accountinfo.yml
|
208
|
-
- spec/fixtures/vcr_cassettes/
|
260
|
+
- spec/fixtures/vcr_cassettes/domain_create.yml
|
261
|
+
- spec/fixtures/vcr_cassettes/domain_list.yml
|
262
|
+
- spec/fixtures/vcr_cassettes/domain_record_create.yml
|
263
|
+
- spec/fixtures/vcr_cassettes/domain_record_list.yml
|
209
264
|
- spec/fixtures/vcr_cassettes/droplet.yml
|
265
|
+
- spec/fixtures/vcr_cassettes/droplet_power.yml
|
266
|
+
- spec/fixtures/vcr_cassettes/droplet_powercycle.yml
|
267
|
+
- spec/fixtures/vcr_cassettes/droplet_reboot.yml
|
268
|
+
- spec/fixtures/vcr_cassettes/droplet_rebuild.yml
|
269
|
+
- spec/fixtures/vcr_cassettes/droplet_rename.yml
|
270
|
+
- spec/fixtures/vcr_cassettes/droplet_resize.yml
|
271
|
+
- spec/fixtures/vcr_cassettes/droplet_snapshot.yml
|
210
272
|
- spec/fixtures/vcr_cassettes/image.yml
|
211
273
|
- spec/fixtures/vcr_cassettes/public_images.yml
|
212
274
|
- spec/fixtures/vcr_cassettes/region.yml
|
213
275
|
- spec/fixtures/vcr_cassettes/sizes.yml
|
214
276
|
- spec/fixtures/vcr_cassettes/sshkey.yml
|
277
|
+
- spec/fixtures/vcr_cassettes/sshkey_create.yml
|
215
278
|
- spec/lib/chef/knife/digital_ocean_account_info_spec.rb
|
216
279
|
- spec/lib/chef/knife/digital_ocean_domain_create_spec.rb
|
217
280
|
- spec/lib/chef/knife/digital_ocean_domain_destroy_spec.rb
|
218
281
|
- spec/lib/chef/knife/digital_ocean_domain_list_spec.rb
|
219
282
|
- spec/lib/chef/knife/digital_ocean_domain_record_create_spec.rb
|
220
283
|
- spec/lib/chef/knife/digital_ocean_domain_record_destroy_spec.rb
|
221
|
-
- spec/lib/chef/knife/digital_ocean_domain_record_edit_spec.rb
|
222
284
|
- spec/lib/chef/knife/digital_ocean_domain_record_list_spec.rb
|
223
285
|
- spec/lib/chef/knife/digital_ocean_droplet_create_spec.rb
|
224
286
|
- spec/lib/chef/knife/digital_ocean_droplet_destroy_spec.rb
|
225
287
|
- spec/lib/chef/knife/digital_ocean_droplet_list_spec.rb
|
288
|
+
- spec/lib/chef/knife/digital_ocean_droplet_power_spec.rb
|
289
|
+
- spec/lib/chef/knife/digital_ocean_droplet_powercycle_spec.rb
|
290
|
+
- spec/lib/chef/knife/digital_ocean_droplet_reboot_spec.rb
|
291
|
+
- spec/lib/chef/knife/digital_ocean_droplet_rebuild_spec.rb
|
292
|
+
- spec/lib/chef/knife/digital_ocean_droplet_rename_spec.rb
|
293
|
+
- spec/lib/chef/knife/digital_ocean_droplet_resize_spec.rb
|
294
|
+
- spec/lib/chef/knife/digital_ocean_droplet_snapshot_spec.rb
|
226
295
|
- spec/lib/chef/knife/digital_ocean_image_list_spec.rb
|
227
296
|
- spec/lib/chef/knife/digital_ocean_region_list_spec.rb
|
228
297
|
- spec/lib/chef/knife/digital_ocean_size_list_spec.rb
|
@@ -256,25 +325,43 @@ signing_key:
|
|
256
325
|
specification_version: 4
|
257
326
|
summary: A plugin for chef's knife to manage instances of DigitalOcean servers
|
258
327
|
test_files:
|
328
|
+
- spec/fixtures/keys/id_rsa.pub
|
259
329
|
- spec/fixtures/vcr_cassettes/accountinfo.yml
|
260
|
-
- spec/fixtures/vcr_cassettes/
|
330
|
+
- spec/fixtures/vcr_cassettes/domain_create.yml
|
331
|
+
- spec/fixtures/vcr_cassettes/domain_list.yml
|
332
|
+
- spec/fixtures/vcr_cassettes/domain_record_create.yml
|
333
|
+
- spec/fixtures/vcr_cassettes/domain_record_list.yml
|
261
334
|
- spec/fixtures/vcr_cassettes/droplet.yml
|
335
|
+
- spec/fixtures/vcr_cassettes/droplet_power.yml
|
336
|
+
- spec/fixtures/vcr_cassettes/droplet_powercycle.yml
|
337
|
+
- spec/fixtures/vcr_cassettes/droplet_reboot.yml
|
338
|
+
- spec/fixtures/vcr_cassettes/droplet_rebuild.yml
|
339
|
+
- spec/fixtures/vcr_cassettes/droplet_rename.yml
|
340
|
+
- spec/fixtures/vcr_cassettes/droplet_resize.yml
|
341
|
+
- spec/fixtures/vcr_cassettes/droplet_snapshot.yml
|
262
342
|
- spec/fixtures/vcr_cassettes/image.yml
|
263
343
|
- spec/fixtures/vcr_cassettes/public_images.yml
|
264
344
|
- spec/fixtures/vcr_cassettes/region.yml
|
265
345
|
- spec/fixtures/vcr_cassettes/sizes.yml
|
266
346
|
- spec/fixtures/vcr_cassettes/sshkey.yml
|
347
|
+
- spec/fixtures/vcr_cassettes/sshkey_create.yml
|
267
348
|
- spec/lib/chef/knife/digital_ocean_account_info_spec.rb
|
268
349
|
- spec/lib/chef/knife/digital_ocean_domain_create_spec.rb
|
269
350
|
- spec/lib/chef/knife/digital_ocean_domain_destroy_spec.rb
|
270
351
|
- spec/lib/chef/knife/digital_ocean_domain_list_spec.rb
|
271
352
|
- spec/lib/chef/knife/digital_ocean_domain_record_create_spec.rb
|
272
353
|
- spec/lib/chef/knife/digital_ocean_domain_record_destroy_spec.rb
|
273
|
-
- spec/lib/chef/knife/digital_ocean_domain_record_edit_spec.rb
|
274
354
|
- spec/lib/chef/knife/digital_ocean_domain_record_list_spec.rb
|
275
355
|
- spec/lib/chef/knife/digital_ocean_droplet_create_spec.rb
|
276
356
|
- spec/lib/chef/knife/digital_ocean_droplet_destroy_spec.rb
|
277
357
|
- spec/lib/chef/knife/digital_ocean_droplet_list_spec.rb
|
358
|
+
- spec/lib/chef/knife/digital_ocean_droplet_power_spec.rb
|
359
|
+
- spec/lib/chef/knife/digital_ocean_droplet_powercycle_spec.rb
|
360
|
+
- spec/lib/chef/knife/digital_ocean_droplet_reboot_spec.rb
|
361
|
+
- spec/lib/chef/knife/digital_ocean_droplet_rebuild_spec.rb
|
362
|
+
- spec/lib/chef/knife/digital_ocean_droplet_rename_spec.rb
|
363
|
+
- spec/lib/chef/knife/digital_ocean_droplet_resize_spec.rb
|
364
|
+
- spec/lib/chef/knife/digital_ocean_droplet_snapshot_spec.rb
|
278
365
|
- spec/lib/chef/knife/digital_ocean_image_list_spec.rb
|
279
366
|
- spec/lib/chef/knife/digital_ocean_region_list_spec.rb
|
280
367
|
- spec/lib/chef/knife/digital_ocean_size_list_spec.rb
|