meez 0.2.0 → 0.2.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7bae2bec54a38c8539faba2af497a841272e4223
4
+ data.tar.gz: 9bb2b713aff4a05b24ad8b1541ea3b37f26dbb48
5
+ SHA512:
6
+ metadata.gz: 0ec14ae6daca9f8037aabdea62726bc7943e0af0e9ca2a16a4af1a9de6589364d6796045cf166b3d94a6a81b3452c9af284862f39177b46b702b41328dbc85c0
7
+ data.tar.gz: a37b8ae24d11592934e42cd278e351e130cf750bf617d8f422734452bdd9576bffcec98b93db2fab4f1ad31ab42a009fb5bbd853234e09965102474f16d9db74
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  *.gem
2
2
  Gemfile.lock
3
+ .kitchen/
data/.rubocop.yml CHANGED
@@ -1,19 +1,10 @@
1
- # This configuration was generated by `rubocop --auto-gen-config`
2
- # on 2014-03-13 09:32:40 -0500 using RuboCop version 0.18.1.
3
- # The point is for the user to remove these configuration records
4
- # one by one as the offences are removed from the code base.
5
- # Note that changes in the inspected code, or installation of new
6
- # versions of RuboCop, may require this file to be generated again.
1
+ # Dear Rubocop, we're going to agree to disagree on the following:
7
2
 
8
- # Offence count: 13
9
3
  LineLength:
10
4
  Max: 200
11
5
 
12
- # Offence count: 3
13
- # Configuration parameters: CountComments.
14
6
  MethodLength:
15
7
  Max: 25
16
8
 
17
- # Configuration parameters: CountComments.
18
9
  ClassLength:
19
10
  Max: 200
data/Gemfile CHANGED
@@ -17,6 +17,10 @@ group :development do
17
17
  gem 'guard-rubocop', '~> 1.1'
18
18
  end
19
19
 
20
+ group :docker do
21
+ gem "kitchen-docker"
22
+ end
23
+
20
24
  #group :infinite_loop_solver do
21
25
  # gem 'celluloid', '~> 0.14'
22
26
  # gem 'celluloid-io', '~> 0.14'
data/README.md CHANGED
@@ -39,6 +39,7 @@ Options
39
39
  -C, --copyright COPYRIGHT_HOLDER The name of the copyright holder.
40
40
  -I, --license LICENSE The type of license under which a cookbook is distributed: apachev2, gplv2, gplv3, mit, or none (default).
41
41
  -m, --email EMAIL The email address for the individual who maintains the cookbook.
42
+ -d, --kitchen-driver DRIVER The driver which use test-kitchen for creating platform instances: vagrant (default), docker
42
43
  -h, --help help
43
44
  ```
44
45
 
data/bin/meez CHANGED
@@ -26,6 +26,9 @@ opt_parser = OptionParser.new do |opt|
26
26
  opt.on('-m', '--email EMAIL', 'The email address for the individual who maintains the cookbook.') do |email|
27
27
  options[:email] = email
28
28
  end
29
+ opt.on('-d', '--kitchen-driver DRIVER', 'The driver which use test-kitchen for creating platform instances: vagrant (default), docker') do |driver|
30
+ options[:driver] = driver
31
+ end
29
32
  opt.on('-h', '--help', 'help') do
30
33
  options[:help] = true
31
34
  puts opt_parser
data/lib/meez/meez.rb CHANGED
@@ -91,7 +91,9 @@ class Meez
91
91
  require 'kitchen'
92
92
  require 'kitchen/generator/init'
93
93
  Kitchen::Generator::Init.new([], {}, destination_root: path).invoke_all
94
+ options[:driver] ||= "vagrant"
94
95
  write_template('.kitchen.yml.erb', path, cookbook_name, options)
96
+ add_gem(path, 'kitchen-docker', '>=0.15.0') if options[:driver].eql? "docker"
95
97
  end
96
98
 
97
99
  def self.init_vagrant(cookbook_name, options)
@@ -121,6 +123,7 @@ class Meez
121
123
  def self.init_rubocop(cookbook_name, options)
122
124
  puts '* Initializing Rubocop'
123
125
  path = File.join(options[:path], cookbook_name)
126
+ write_template('.rubocop.yml.erb', path, cookbook_name, options)
124
127
  add_gem(path, 'rubocop', '>= 0.21')
125
128
  end
126
129
 
data/meez.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{meez}
3
- s.version = '0.2.0'
3
+ s.version = '0.2.1'
4
4
  s.date = %q{2014-01-08}
5
5
  s.summary = 'Initializes a chef cookbook with TDD framework'
6
6
  s.description = <<EOF
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  driver:
3
- name: vagrant
4
-
3
+ <% case options[:driver] when "vagrant" %>name: vagrant
4
+ <% when "docker" %>name: docker
5
+ provision_command: curl -L http://www.opscode.com/chef/install.sh | bash
6
+ <% end %>
5
7
  provisioner:
6
8
  name: chef_solo
7
9
 
@@ -0,0 +1,10 @@
1
+ # Rubocop, we're buddies and all, but we're going to have to disagree on the following -
2
+
3
+ SingleSpaceBeforeFirstArg:
4
+ Enabled: false
5
+
6
+ UnusedBlockArgument:
7
+ Enabled: false
8
+
9
+ WordArray:
10
+ MinSize: 5
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meez
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Paul Czarkowski
@@ -14,79 +13,72 @@ dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: chef
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>'
17
+ - - ">"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '11.8'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>'
24
+ - - ">"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '11.8'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: test-kitchen
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
33
  version: '1.2'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
40
  version: '1.2'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: bundler
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.5'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '1.5'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: berkshelf
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '3.1'
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '3.1'
78
- description: ! "`Meez` (slang for `mise en place`) will create an opinionated chef
79
- cookbook skeleton complete with testing suite including:\n berkshelf, chefspec,
80
- test kitchen, foodcritic, server spec\n\n"
69
+ description: |+
70
+ `Meez` (slang for `mise en place`) will create an opinionated chef cookbook skeleton complete with testing suite including:
71
+ berkshelf, chefspec, test kitchen, foodcritic, server spec
72
+
81
73
  email: paul.czarkowski@rackspace.com
82
74
  executables:
83
75
  - meez
84
76
  extensions: []
85
77
  extra_rdoc_files: []
86
78
  files:
87
- - .drone.yml
88
- - .gitignore
89
- - .rubocop.yml
79
+ - ".drone.yml"
80
+ - ".gitignore"
81
+ - ".rubocop.yml"
90
82
  - Dockerfile
91
83
  - Gemfile
92
84
  - Guardfile
@@ -96,6 +88,7 @@ files:
96
88
  - meez.gemspec
97
89
  - templates/.drone.yml.erb
98
90
  - templates/.kitchen.yml.erb
91
+ - templates/.rubocop.yml.erb
99
92
  - templates/Guardfile.erb
100
93
  - templates/Rakefile.erb
101
94
  - templates/Vagrantfile.erb
@@ -106,26 +99,26 @@ files:
106
99
  homepage: http://github.com/paulczar/meez
107
100
  licenses:
108
101
  - apache2
102
+ metadata: {}
109
103
  post_install_message:
110
104
  rdoc_options: []
111
105
  require_paths:
112
106
  - lib
113
107
  required_ruby_version: !ruby/object:Gem::Requirement
114
- none: false
115
108
  requirements:
116
- - - ! '>='
109
+ - - ">="
117
110
  - !ruby/object:Gem::Version
118
111
  version: '0'
119
112
  required_rubygems_version: !ruby/object:Gem::Requirement
120
- none: false
121
113
  requirements:
122
- - - ! '>='
114
+ - - ">="
123
115
  - !ruby/object:Gem::Version
124
116
  version: '0'
125
117
  requirements: []
126
118
  rubyforge_project:
127
- rubygems_version: 1.8.23
119
+ rubygems_version: 2.2.1
128
120
  signing_key:
129
- specification_version: 3
121
+ specification_version: 4
130
122
  summary: Initializes a chef cookbook with TDD framework
131
123
  test_files: []
124
+ has_rdoc: