vagrant-powder 0.0.1 → 0.0.2

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: e58e1d4657ac40cc7d397c20a69d09ba39896775
4
- data.tar.gz: 43c5429cff974d57dbfae7edd0179085d26cf93d
3
+ metadata.gz: a206769c05b583e52c1b4b03e7114602d98e7856
4
+ data.tar.gz: 7f591ac7559863de7c66e0f7f164ef610f99b104
5
5
  SHA512:
6
- metadata.gz: 83cf347cac6ae0c73338016bc2bc39871f4c0ebdfc7e83151f1cfbce91a1b6d1cda44880265e59f86e7b83160f861baf7d7591174788396de7044af7dd29832e
7
- data.tar.gz: b7be00435bc7f9e42c70e49df9d78c6dd56a4b0fc300b7f5508bce1b1251ba51377560fa196e0928914a22ac77142116f38aa777f680a3f8f4b1db8097177927
6
+ metadata.gz: 57c58d6f2df542d7961d9a90039ce791983f59214688e3b78a4459d72efaaeecba021366809a2c0d5ca70c97681f3c36fae91852ab764cb2faf491e573bed7b2
7
+ data.tar.gz: 3837cf907c27463b49b47a33d2a95584ff0ddb1027dba6854ff1701736f02ac667531eaac76ee04bfca9a0bd5c085af4c0b16ba7e38380064a147c714a176443
data/README.md CHANGED
@@ -12,8 +12,6 @@ A [Vagrant](http://www.vagrantup.com/) plugin to help with
12
12
 
13
13
  ## Installation
14
14
 
15
- TODO: distribute to plugin repo so the following works
16
-
17
15
  ``` bash
18
16
  vagrant plugin install vagrant-powder
19
17
  ```
@@ -24,8 +24,14 @@ module VagrantPlugins
24
24
 
25
25
  case action
26
26
  when :up
27
- puts "Powder down"
28
- `powder down`
27
+ puts "Powder unlink"
28
+ `powder unlink`
29
+ when :halt
30
+ puts "Powder link"
31
+ `powder link`
32
+ when :destroy
33
+ puts "powder link"
34
+ `powder link`
29
35
  end
30
36
  end
31
37
 
@@ -23,16 +23,15 @@ module VagrantPlugins
23
23
  hook.prepend(Action)
24
24
  end
25
25
 
26
- # TODO: Handle powder up on halt and destroy
27
- # action_hook("Powder_hook", :machine_action_halt) do |hook|
28
- # require_relative "action"
29
- # hook.prepend(Action)
30
- # end
31
- #
32
- # action_hook("Powder_hook", :machine_action_destroy) do |hook|
33
- # require_relative "action"
34
- # hook.prepend(Action)
35
- # end
26
+ action_hook("Powder_hook", :machine_action_halt) do |hook|
27
+ require_relative "action"
28
+ hook.prepend(Action)
29
+ end
30
+
31
+ action_hook("Powder_hook", :machine_action_destroy) do |hook|
32
+ require_relative "action"
33
+ hook.prepend(Action)
34
+ end
36
35
 
37
36
  end
38
37
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Powder
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Joe Kratzat"]
10
10
  spec.email = ["joe.kratzat@gmail.com"]
11
11
  spec.summary = %q{Allows vagrant to handle the powder gem}
12
- spec.description = %q{Makes sure that pow isn't running when you vagrant up}
12
+ spec.description = %q{Unlinks the current project in pow when you vagrant up.
13
+ Then relinks on vagrant halt or destroy.}
13
14
  spec.homepage = "https://github.com/joekr/vagrant-powder"
14
15
  spec.license = "MIT"
15
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-powder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Kratzat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-06 00:00:00.000000000 Z
11
+ date: 2014-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,7 +64,9 @@ dependencies:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: 0.2.1
67
- description: Makes sure that pow isn't running when you vagrant up
67
+ description: |-
68
+ Unlinks the current project in pow when you vagrant up.
69
+ Then relinks on vagrant halt or destroy.
68
70
  email:
69
71
  - joe.kratzat@gmail.com
70
72
  executables: []