chef-cooker 0.0.1 → 0.0.2

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.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Chef::Cooker
2
2
 
3
- TODO: Write a gem description
3
+ A tiny knife(chef-solo) wrapper.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Chef
2
2
  module Cooker
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
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.1
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: &70201925712200 !ruby/object:Gem::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: *70201925712200
24
+ version_requirements: *70267105881960
25
25
  description: A tiny knife(chef-solo) wrapper.
26
26
  email:
27
27
  - ameutau@gmail.com