vagrant-deltacloud-provider 0.0.8 → 0.0.9
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/lib/vagrant-deltacloud-provider/action/resume.rb +1 -1
- data/lib/vagrant-deltacloud-provider/action/start_server.rb +1 -1
- data/lib/vagrant-deltacloud-provider/action/stop_server.rb +1 -1
- data/lib/vagrant-deltacloud-provider/action/suspend.rb +1 -1
- data/lib/vagrant-deltacloud-provider/version.rb +1 -1
- data/spec/vagrant-deltacloud-provider/action/suspend_server_spec.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bae35f875387f748377033a637c530bfbd7bc29
|
4
|
+
data.tar.gz: 6c883a9a5ef8aa555a2b471bb75e655a0e592516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dce243a1473aaf290d0eaf22ed2211b613a645a9e1ed2ee420cd9f069b68a3ac948ffc08ff268fc2ea0f11e0548b1171d3b06966a408b4089bc679047e666aa
|
7
|
+
data.tar.gz: 049347e39c57f0a4116ca184e0d3bee81842e2b1131ff0981d880de4e6ba33e3041c05ac79fa0af035cf8af941ee26c7271b61fe55f7af0c14f8330ffbf3c867
|
data/CHANGELOG.md
CHANGED
@@ -15,7 +15,7 @@ module VagrantPlugins
|
|
15
15
|
if env[:machine].id
|
16
16
|
@logger.info "Resuming suspended VM #{env[:machine].id}..."
|
17
17
|
env[:ui].info I18n.t('vagrant.actions.vm.resume.resuming')
|
18
|
-
env[:deltacloud_client].
|
18
|
+
env[:deltacloud_client].start_instance(env, env[:machine].id)
|
19
19
|
end
|
20
20
|
|
21
21
|
@app.call(env)
|
@@ -16,7 +16,7 @@ module VagrantPlugins
|
|
16
16
|
env[:deltacloud_client] = Deltacloud::DeltacloudClient.instance
|
17
17
|
if env[:machine].id
|
18
18
|
env[:ui].info(I18n.t('vagrant_deltacloud.starting_server'))
|
19
|
-
env[:deltacloud_client].
|
19
|
+
env[:deltacloud_client].start_instance(env, env[:machine].id)
|
20
20
|
end
|
21
21
|
@app.call(env)
|
22
22
|
end
|
@@ -17,7 +17,7 @@ module VagrantPlugins
|
|
17
17
|
if env[:machine].id
|
18
18
|
@logger.info "Stopping server #{env[:machine].id}..."
|
19
19
|
env[:ui].info(I18n.t('vagrant_deltacloud.stopping_server'))
|
20
|
-
env[:deltacloud_client].
|
20
|
+
env[:deltacloud_client].stop_instance(env, env[:machine].id)
|
21
21
|
end
|
22
22
|
@app.call(env)
|
23
23
|
end
|
@@ -15,7 +15,7 @@ module VagrantPlugins
|
|
15
15
|
if env[:machine].id
|
16
16
|
@logger.info "Saving VM #{env[:machine].id} state and suspending execution..."
|
17
17
|
env[:ui].info I18n.t('vagrant.actions.vm.suspend.suspending')
|
18
|
-
env[:deltacloud_client].
|
18
|
+
env[:deltacloud_client].stop_instance(env, env[:machine].id)
|
19
19
|
end
|
20
20
|
|
21
21
|
@app.call(env)
|
@@ -4,7 +4,7 @@ describe VagrantPlugins::Deltacloud::Action::Suspend do
|
|
4
4
|
|
5
5
|
let(:deltacloud) do
|
6
6
|
double('deltacloud').tap do |deltacloud|
|
7
|
-
deltacloud.stub(:
|
7
|
+
deltacloud.stub(:stop_instance)
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
@@ -29,7 +29,7 @@ describe VagrantPlugins::Deltacloud::Action::Suspend do
|
|
29
29
|
context 'when server id is present' do
|
30
30
|
it 'starts the server' do
|
31
31
|
env[:machine].id = 'server_id'
|
32
|
-
expect(deltacloud).to receive(:
|
32
|
+
expect(deltacloud).to receive(:stop_instance).with(env, 'server_id')
|
33
33
|
expect(app).to receive(:call)
|
34
34
|
@action = Suspend.new(app, nil)
|
35
35
|
@action.call(env)
|
@@ -38,7 +38,7 @@ describe VagrantPlugins::Deltacloud::Action::Suspend do
|
|
38
38
|
context 'when server id is not present' do
|
39
39
|
it 'does nothing' do
|
40
40
|
env[:machine].id = nil
|
41
|
-
expect(deltacloud).to_not receive(:
|
41
|
+
expect(deltacloud).to_not receive(:stop_instance)
|
42
42
|
expect(app).to receive(:call)
|
43
43
|
@action = Suspend.new(app, nil)
|
44
44
|
@action.call(env)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-deltacloud-provider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tero Keski-Valkama
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|