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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: add8cce019fbc9e3fc3b5e77857e46ce4ecf0cae
4
- data.tar.gz: d26485067cbbed8d2b3ed49c3ec75d29e56df757
3
+ metadata.gz: 6bae35f875387f748377033a637c530bfbd7bc29
4
+ data.tar.gz: 6c883a9a5ef8aa555a2b471bb75e655a0e592516
5
5
  SHA512:
6
- metadata.gz: 62ceb53410b26c0a553122a0df1d5467958e9fb6a6a87890a1aea7131a7bed27a6a8b866419f2b345a2cef7c13684db1204a533646e6e125557e4cfb0c6930ab
7
- data.tar.gz: 252ccc3851f024ca2be0fb0cadbe71efc1df071fd5f1ea31cf3647665c006b4df283331bd99ab8217708dc807c899665b997c3674f74bd8c6906bc2165689073
6
+ metadata.gz: 5dce243a1473aaf290d0eaf22ed2211b613a645a9e1ed2ee420cd9f069b68a3ac948ffc08ff268fc2ea0f11e0548b1171d3b06966a408b4089bc679047e666aa
7
+ data.tar.gz: 049347e39c57f0a4116ca184e0d3bee81842e2b1131ff0981d880de4e6ba33e3041c05ac79fa0af035cf8af941ee26c7271b61fe55f7af0c14f8330ffbf3c867
@@ -1,3 +1,7 @@
1
+ # 0.0.9 (November 19, 2014)
2
+
3
+ * Start / stop support. Suspend / resume bound to start/stop also.
4
+
1
5
  # 0.0.8 (November 13, 2014)
2
6
 
3
7
  * Clean up and bug fixes.
@@ -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].resume_server(env, env[:machine].id)
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].start_server(env, env[:machine].id)
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].stop_server(env, env[:machine].id)
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].suspend_server(env, env[:machine].id)
18
+ env[:deltacloud_client].stop_instance(env, env[:machine].id)
19
19
  end
20
20
 
21
21
  @app.call(env)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Deltacloud
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
@@ -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(:suspend_server)
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(:suspend_server).with(env, 'server_id')
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(:suspend_server)
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.8
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-13 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json