rake-chef 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -5
- data/lib/rake/chef/dsl.rb +1 -1
- data/lib/rake/chef/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b36d20083106d93d887edd607e61ec44a49eb28
|
4
|
+
data.tar.gz: 733f074c01a5eee760caae7d831eeb3d5cacd0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46aaebc521c91ba8b3d61237b6d77047a03e2242926c26cfc924e9113ee00b5b786deea872d6be8ae34178b98150def1e6155d47c8c1fb230721eca2cb9541ed
|
7
|
+
data.tar.gz: 5d04592fd084011691786df883bf03cb6ed27b0730ad9dfa3bd06286403b5200abf0e771d7b397967bd6934d359d8f3d9b3f67294da147b627f438d10152b3a1
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Rake::Chef
|
2
2
|
|
3
|
-
|
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
|
-
|
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/
|
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
|
data/lib/rake/chef/dsl.rb
CHANGED
@@ -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("
|
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
|
data/lib/rake/chef/version.rb
CHANGED
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.
|
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-
|
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.
|
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:
|