chef-cooker 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/chef-cooker.rb +4 -3
- data/lib/chef-cooker/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/chef-cooker.rb
CHANGED
@@ -15,25 +15,26 @@ module Chef
|
|
15
15
|
add_and_commit_with_git
|
16
16
|
end
|
17
17
|
|
18
|
+
private
|
18
19
|
def generate_cookbook
|
19
20
|
`bundle exec knife cookbook create #{cookbook} --cookbook-path cookbooks`
|
20
21
|
end
|
21
22
|
|
22
23
|
def append_package
|
23
|
-
if yes? "Do you want to append package to cookbooks/#{cookbook}/recipes/default.rb"
|
24
|
+
if yes? "Do you want to append package to cookbooks/#{cookbook}/recipes/default.rb? [y/N] :"
|
24
25
|
append_file "cookbooks/#{cookbook}/recipes/default.rb", deindent(<<-EOS)
|
26
|
+
|
25
27
|
package "#{cookbook}"
|
26
28
|
EOS
|
27
29
|
end
|
28
30
|
end
|
29
31
|
|
30
32
|
def add_and_commit_with_git
|
31
|
-
if yes? 'Do you want to commit'
|
33
|
+
if yes? 'Do you want to commit? [y/N] :'
|
32
34
|
git add: "cookbooks/#{cookbook}", commit: "-m \"Add #{cookbook}\""
|
33
35
|
end
|
34
36
|
end
|
35
37
|
|
36
|
-
private
|
37
38
|
# Run a command in git.
|
38
39
|
#
|
39
40
|
# git :init
|
data/lib/chef-cooker/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-cooker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
16
|
-
requirement: &
|
16
|
+
requirement: &70267105881960 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70267105881960
|
25
25
|
description: A tiny knife(chef-solo) wrapper.
|
26
26
|
email:
|
27
27
|
- ameutau@gmail.com
|