rake-chef 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d313aef195756f31100eb2d443276ecd4dd59719
4
- data.tar.gz: dc96c9daa0a4022b7a9faf3f52d680c50544ce1b
3
+ metadata.gz: 3b36d20083106d93d887edd607e61ec44a49eb28
4
+ data.tar.gz: 733f074c01a5eee760caae7d831eeb3d5cacd0db
5
5
  SHA512:
6
- metadata.gz: 84dc777dc8e16cc41257150e731d6a17c494cf2df73925bdd4bf061cdf0e19e970b1e8a0decd22048b42fa5ca01cc8f80d982f0a73cc3c7eb18c63cb6772fcd9
7
- data.tar.gz: b2ef6b284f01c9f3b88b1482fff2121c73c91a9a906298fbe654fd661f33cc01ec8ea133a5c86f1cd462c2934cb6ef80291acfcfecd59d594d09591454d16157
6
+ metadata.gz: 46aaebc521c91ba8b3d61237b6d77047a03e2242926c26cfc924e9113ee00b5b786deea872d6be8ae34178b98150def1e6155d47c8c1fb230721eca2cb9541ed
7
+ data.tar.gz: 5d04592fd084011691786df883bf03cb6ed27b0730ad9dfa3bd06286403b5200abf0e771d7b397967bd6934d359d8f3d9b3f67294da147b627f438d10152b3a1
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Rake::Chef
2
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/rake/chef`. 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
3
+ Provide Rake tasks with Chef Recipe DSL
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,28 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Add your recipe tasks to your rake file. You can use resources as you would in
24
+ `chef-apply`.
25
+
26
+ ```ruby
27
+
28
+ # Rakefile
29
+ require 'chef/rake'
30
+
31
+ recipe :log do
32
+ log 'OHAI'
33
+ end
34
+
35
+ ```
36
+
37
+ Then run your task with the following command
38
+
39
+ ```text
40
+ $ rake chef:recipe:log
41
+ Recipe: rake-chef::log)
42
+ * log[OHAI] action write
43
+
44
+ ```
26
45
 
27
46
  ## Development
28
47
 
@@ -32,7 +51,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
51
 
33
52
  ## Contributing
34
53
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rake-chef. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/brandocorp/rake-chef. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
55
 
37
56
 
38
57
  ## License
@@ -16,7 +16,7 @@ module Rake
16
16
  @chef_client.load_node
17
17
  @chef_client.build_node
18
18
  run_context = ::Chef::RunContext.new(@chef_client.node, {}, @chef_client.events)
19
- recipe = ::Chef::Recipe.new("(rake-chef cookbook)", "(rake-chef recipe)", run_context)
19
+ recipe = ::Chef::Recipe.new("rake-chef", id, run_context)
20
20
  recipe.instance_eval(&block)
21
21
  runner = ::Chef::Runner.new(run_context)
22
22
  runner.converge
@@ -1,5 +1,5 @@
1
1
  module Rake
2
2
  module Chef
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-chef
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Raabe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-13 00:00:00.000000000 Z
11
+ date: 2016-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef
@@ -110,8 +110,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.5.1
113
+ rubygems_version: 2.6.3
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Provide Rake tasks with Chef DSL
117
117
  test_files: []
118
+ has_rdoc: