chef-gen-flavor-base 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acb6a2ac238b27eb37a32748b7e95b4b73a37c14
|
4
|
+
data.tar.gz: c6eafdf164ca48a0733c407de4a5572479091095
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc9b9016d4a5b3d3dfe137b8cecf95883b6c1b5c5509f82cf0487488e012e17b0482fde3165b3576fdf8b2d167cbe3031a1313a3708dfe3c46c3a009d8292df5
|
7
|
+
data.tar.gz: 723f23ae095f3c84bd9d630837d86599a3be3d496ea867bb23f7aca46f1e686e633e956f514f552b8d0415f1e2b7fd74f6b69252992329f75061f65dcd8be26e
|
data/History.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog for chef-gen-flavor-base
|
2
2
|
|
3
|
+
## 0.9.2
|
4
|
+
|
5
|
+
* fix a couple of snippet guards that were referring to the wrong dependent
|
6
|
+
|
3
7
|
## 0.9.1
|
4
8
|
|
5
9
|
* update #static_content_path to take a flavor or snippet name arg rather than relying on the NAME constant in the class, because this fails when you have C < B < FlavorBase (B would try to copy files from a directory named for C)
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: chef-gen-flavor-base 0.9.
|
2
|
+
# stub: chef-gen-flavor-base 0.9.2.20150911125045 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "chef-gen-flavor-base"
|
6
|
-
s.version = "0.9.
|
6
|
+
s.version = "0.9.2.20150911125045"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib"]
|
10
10
|
s.authors = ["James FitzGibbon"]
|
11
|
-
s.date = "2015-09-
|
11
|
+
s.date = "2015-09-11"
|
12
12
|
s.description = "chef-gen-flavor-base is a base class to make it easy to create 'flavors'\nfor use with\n[chef-gen-flavors](https://github.com/jf647/chef-gen-flavors).\n\nchef-gen-flavors plugs into the 'chef generate' command provided by\nChefDK to let you provide an alternate template for cookbooks and other\nchef components.\n\nThis gem simply provides a class your flavor can derive from; templates\nare provided by separate gems, which you can host privately for use\nwithin your organization or publicly for the Chef community to use.\n\nAn example flavor that demonstrates how to use this gem is distributed\nseparately:\n[chef-gen-flavor-example](https://github.com/jf647/chef-gen-flavor-example)\n\nAt present this is focused primarily on providing templates for\ngeneration of cookbooks, as this is where most organization-specific\ncustomization takes place. Support for the other artifacts that ChefDK\ncan generate may work, but is not the focus of early releases."
|
13
13
|
s.email = ["james@nadt.net"]
|
14
14
|
s.extra_rdoc_files = ["History.md", "Manifest.txt", "README.md"]
|
data/lib/chef_gen/flavor_base.rb
CHANGED
@@ -100,7 +100,7 @@ END
|
|
100
100
|
# @api private
|
101
101
|
def declare_guard_sets
|
102
102
|
@flavor.class.do_declare_resources do
|
103
|
-
if snippet?('
|
103
|
+
if snippet?('guard')
|
104
104
|
guard_sets['chefspec'] = <<'END'
|
105
105
|
rspec_command = ENV.key?('DISABLE_PRY_RESCUE') ? 'rspec' : 'rescue rspec'
|
106
106
|
guard :rspec, all_on_start: true, cmd: "bundle exec #{rspec_command}" do
|
@@ -23,9 +23,10 @@ module ChefGen
|
|
23
23
|
# @api private
|
24
24
|
def declare_cookbook_gems
|
25
25
|
@flavor.class.do_declare_resources do
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
if snippet?('cookbook_base')
|
27
|
+
cookbook_gems['tailor'] = '~> 1.4'
|
28
|
+
cookbook_gems['guard-rake'] = '~> 0.0'
|
29
|
+
end
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
@@ -34,8 +35,7 @@ module ChefGen
|
|
34
35
|
# @api private
|
35
36
|
def declare_rake_tasks
|
36
37
|
@flavor.class.do_declare_resources do
|
37
|
-
|
38
|
-
rake_tasks['tailor'] = <<'END'
|
38
|
+
rake_tasks['tailor'] = <<'END' if snippet?('cookbook_base')
|
39
39
|
require 'tailor/rake_task'
|
40
40
|
Tailor::RakeTask.new do |t|
|
41
41
|
{
|
@@ -109,8 +109,8 @@ module ChefGen
|
|
109
109
|
# @api private
|
110
110
|
def declare_rake_tasks
|
111
111
|
@flavor.class.do_declare_resources do
|
112
|
-
|
113
|
-
|
112
|
+
if snippet?('cookbook_base')
|
113
|
+
rake_tasks['testkitchen'] = <<'END'
|
114
114
|
begin
|
115
115
|
require 'kitchen/rake_tasks'
|
116
116
|
Kitchen::RakeTasks.new
|
@@ -122,6 +122,7 @@ rescue
|
|
122
122
|
end
|
123
123
|
task integration: 'kitchen:all'
|
124
124
|
END
|
125
|
+
end
|
125
126
|
end
|
126
127
|
end
|
127
128
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-gen-flavor-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James FitzGibbon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-gen-flavors
|