vagrant-digitalocean 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,7 +7,8 @@ management of [Digital Ocean](https://www.digitalocean.com/) droplets
7
7
  **NOTE:** The Chef provisioner is no longer supported by default (as of 0.2.0).
8
8
  Please use the `vagrant-omnibus` plugin to install Chef on Vagrant-managed
9
9
  machines. This plugin provides control over the specific version of Chef
10
- to install. The custom `rebuild` command will not work until a pull request
10
+ to install. The custom `rebuild` command will not work until a
11
+ [pull request](https://github.com/schisamo/vagrant-omnibus/pull/21)
11
12
  is accepted within the `vagrant-omnibus` project. I will update the README
12
13
  when this is completed.
13
14
 
@@ -54,7 +54,7 @@ module VagrantPlugins
54
54
  # wait for ssh to be ready using the root user account
55
55
  user = @machine.config.ssh.username
56
56
  @machine.config.ssh.username = 'root'
57
- retryable(:tries => 30, :sleep => 10) do
57
+ retryable(:tries => 120, :sleep => 10) do
58
58
  next if env[:interrupted]
59
59
  raise 'not ready' if !@machine.communicate.ready?
60
60
  end
@@ -28,6 +28,9 @@ module VagrantPlugins
28
28
  env[:ui].info I18n.t('vagrant_digital_ocean.info.rebuilding')
29
29
  @client.wait_for_event(env, result['event_id'])
30
30
 
31
+ # refresh droplet state with provider
32
+ Provider.droplet(@machine, :refresh => true)
33
+
31
34
  @app.call(env)
32
35
  end
33
36
  end
@@ -139,13 +139,11 @@ module VagrantPlugins
139
139
  builder.use ConfigValidate
140
140
  builder.use Call, CheckState do |env, b|
141
141
  case env[:machine_state]
142
- when :active
142
+ when :active, :off
143
143
  b.use Rebuild
144
144
  b.use SetupSudo
145
145
  b.use SetupUser
146
146
  b.use provision
147
- when :off
148
- env[:ui].info I18n.t('vagrant_digital_ocean.info.off')
149
147
  when :not_created
150
148
  env[:ui].info I18n.t('vagrant_digital_ocean.info.not_created')
151
149
  end
@@ -68,7 +68,7 @@ module VagrantPlugins
68
68
  end
69
69
 
70
70
  def wait_for_event(env, id)
71
- retryable(:tries => 30, :sleep => 10) do
71
+ retryable(:tries => 120, :sleep => 10) do
72
72
  # stop waiting if interrupted
73
73
  next if env[:interrupted]
74
74
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module DigitalOcean
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-digitalocean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-06-14 00:00:00.000000000 Z
12
+ date: 2013-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday