knife_cookbook_sync 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +14 -0
- data/lib/chef-workflow/tasks/chef/cookbooks/sync.rb +13 -0
- data/lib/knife_cookbook_sync/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -58,6 +58,20 @@ upload.
|
|
58
58
|
|
59
59
|
For more information, use `knife cookbook sync --help`.
|
60
60
|
|
61
|
+
## Chef-Workflow support
|
62
|
+
|
63
|
+
We support [chef-workflow](https://github.com/chef-workflow/chef-workflow) by
|
64
|
+
way of a task you can use.
|
65
|
+
|
66
|
+
Add the 'knife_cookbook_sync' gem to your `Gemfile` (version `0.0.3` or later),
|
67
|
+
and this to your `Rakefile`:
|
68
|
+
|
69
|
+
```ruby
|
70
|
+
chef_workflow_task 'chef/cookbooks/sync'
|
71
|
+
```
|
72
|
+
|
73
|
+
And you'll have a `chef:cookbooks:sync` rake target you can use.
|
74
|
+
|
61
75
|
## Contributing
|
62
76
|
|
63
77
|
1. Fork it
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'knife/dsl'
|
2
|
+
require 'chef-workflow/tasks/bootstrap/knife'
|
3
|
+
|
4
|
+
namespace :chef do
|
5
|
+
namespace :cookbooks do
|
6
|
+
desc "Upload your cookbooks to the chef server"
|
7
|
+
task :sync => [ "bootstrap:knife" ] do
|
8
|
+
Rake::Task["chef:cookbooks:resolve"].invoke rescue nil
|
9
|
+
result = knife %W[cookbook sync -a]
|
10
|
+
fail if result != 0
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife_cookbook_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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-
|
12
|
+
date: 2013-02-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: chef
|
@@ -41,6 +41,7 @@ files:
|
|
41
41
|
- README.md
|
42
42
|
- Rakefile
|
43
43
|
- knife_cookbook_sync.gemspec
|
44
|
+
- lib/chef-workflow/tasks/chef/cookbooks/sync.rb
|
44
45
|
- lib/chef/knife/cookbook_sync.rb
|
45
46
|
- lib/knife_cookbook_sync.rb
|
46
47
|
- lib/knife_cookbook_sync/version.rb
|
@@ -64,9 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
65
|
version: '0'
|
65
66
|
requirements: []
|
66
67
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.25
|
68
69
|
signing_key:
|
69
70
|
specification_version: 3
|
70
71
|
summary: Sync only what's changed -- faster than cookbook upload
|
71
72
|
test_files: []
|
72
|
-
has_rdoc:
|