vagrant_hook 0.1.0 → 0.1.1

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: 65237bab1a1fe9f8f2be03b5af9561c7ea681eab
4
- data.tar.gz: fbd3b8be0cba7dc2b9a529d525abef66574139bd
3
+ metadata.gz: 1c63a8c9db285f71c732223f795936b9563a5f64
4
+ data.tar.gz: 7c3a77e8d925db5e9a0fd0204f0734b1f7c2f025
5
5
  SHA512:
6
- metadata.gz: d0f8fafa724f8ccba6926f82e4e9eea7f173ca1736ddb1eee538a64b31bb0896fc906bb433e28cda06f51e202afc812e87535579d0cd5cdb8c3e7e40545c143e
7
- data.tar.gz: bd645d6d5f7cea30a6ca5486d5a8663562e184e8e61f0c0c08d7390f0db2ef8a094a2d6349f60ee34243afcfc22b6641cdf9d5ed3ae3dc65427970806a366169
6
+ metadata.gz: 733906e032b43036b78907d0b6a50c9e6be746f3f8bde9ac2f02d865ae10db7e7e2cb2ec66f0e6fd0c693dd52e19dd35a7bbf48325518e1bdd7722f6eaca6281
7
+ data.tar.gz: 9f01f1919faf162da54172e2d5c7a9045b3c31d2c270bd1e80f2f5d0f4b878b9067aea94fba7e5ffd6a3a63aac4df45b3960fbfa36715cf617cda567dd0b3777
data/README.md CHANGED
@@ -1,35 +1,21 @@
1
- # Vagranthook
2
-
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/vagranthook`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'vagranthook'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install vagranthook
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/vagranthook.
1
+ # Vagranthook
2
+
3
+ This project proves how to create a basic plugin that can hook to a specific event chain.
4
+
5
+ It is a base, so that in the future it can support further events.
6
+
7
+ Feel free to contribute.
8
+
9
+ # Installation
10
+
11
+ > vagrant plugin install vagrant_hook
12
+
13
+ # How to use
14
+
15
+ In your vagrant box add something like:
16
+
17
+ ```ruby
18
+ config.vagrant_hook.check_outdated do |host|
19
+ puts "hello world!"
20
+ end
21
+ ```
@@ -22,7 +22,7 @@ module VagrantPlugins
22
22
  @host = env[:host]
23
23
 
24
24
  callbacks = @callbacks_list.call
25
- puts callbacks.to_yaml
25
+
26
26
  callbacks.each do | clbk |
27
27
  clbk[:mproc].call(@host)
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantHook
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler