knife-digital_ocean 2.3.3 → 2.4.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 +4 -0
- data/README.md +28 -8
- data/knife-digital_ocean.gemspec +1 -0
- data/lib/chef/knife/digital_ocean_droplet_create.rb +27 -2
- data/lib/chef/knife/digital_ocean_droplet_destroy.rb +7 -2
- data/lib/knife-digital_ocean/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/droplet_power.yml +13 -12
- data/spec/fixtures/vcr_cassettes/droplet_powercycle.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_reboot.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_rebuild.yml +14 -13
- data/spec/fixtures/vcr_cassettes/droplet_rename.yml +13 -74
- data/spec/fixtures/vcr_cassettes/droplet_resize.yml +14 -13
- data/spec/fixtures/vcr_cassettes/droplet_snapshot.yml +13 -1004
- data/spec/lib/chef/knife/digital_ocean_droplet_power_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_powercycle_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_reboot_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_rebuild_spec.rb +2 -2
- data/spec/lib/chef/knife/digital_ocean_droplet_rename_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_resize_spec.rb +1 -1
- data/spec/lib/chef/knife/digital_ocean_droplet_snapshot_spec.rb +1 -1
- metadata +16 -2
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletPower do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
subject.config[:action] = 'off'
|
16
16
|
end
|
17
17
|
|
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletPowercycle do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
end
|
16
16
|
|
17
17
|
describe '#run' do
|
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletReboot do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
end
|
16
16
|
|
17
17
|
describe '#run' do
|
@@ -11,8 +11,8 @@ describe Chef::Knife::DigitalOceanDropletRebuild do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
15
|
-
subject.config[:image] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
|
+
subject.config[:image] = '10322059'
|
16
16
|
end
|
17
17
|
|
18
18
|
describe '#run' do
|
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletRename do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
subject.config[:name] = 'ilikelamp.com'
|
16
16
|
end
|
17
17
|
|
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletResize do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
subject.config[:size] = '1gb'
|
16
16
|
end
|
17
17
|
|
@@ -11,7 +11,7 @@ describe Chef::Knife::DigitalOceanDropletSnapshot do
|
|
11
11
|
Chef::Config['knife']['digital_ocean_access_token'] = access_token
|
12
12
|
allow(subject).to receive(:puts)
|
13
13
|
allow(subject).to receive(:wait_for_status).and_return('OK')
|
14
|
-
subject.config[:id] = '
|
14
|
+
subject.config[:id] = '4829346'
|
15
15
|
subject.config[:name] = 'ilikelamp-snapshots'
|
16
16
|
end
|
17
17
|
|
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.4.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: 2015-
|
12
|
+
date: 2015-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -95,6 +95,20 @@ dependencies:
|
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: knife-zero
|
100
|
+
requirement: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
type: :development
|
106
|
+
prerelease: false
|
107
|
+
version_requirements: !ruby/object:Gem::Requirement
|
108
|
+
requirements:
|
109
|
+
- - ">="
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: '0'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: webmock
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|