chef-gen-flavors 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +4 -0
- data/chef-gen-flavors.gemspec +4 -4
- data/lib/chef_gen/flavors.rb +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3aa5262facacb59d8862d1a034f03c27af1746ae
|
4
|
+
data.tar.gz: 17b454f5047c4aed4e75704b84de6a45b418213e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: adfa27c9b067528290e40dce3689dd75d66ba7e48fee1550a46693f6950758a161e3bf58671798289e58bb9da43eaba55e995ae44fe8e3a3cac0f7b9325dff4c
|
7
|
+
data.tar.gz: f0f555110c7aa4abcd1c341881d66f791e0c7d183dfe941ba3d51624ec0126a246ae84897a7f8d53218908597ac23dfea33b364bd319e097a0a31c0cfe7ad034
|
data/History.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog for chef-gen-flavors
|
2
2
|
|
3
|
+
## 0.9.1
|
4
|
+
|
5
|
+
* fix bug that prevented using CHEFDK_FLAVOR=1 in ENV to get the built-in code generator
|
6
|
+
|
3
7
|
## 0.9.0
|
4
8
|
|
5
9
|
* removed ChefGen::FlavorBase (and the snippets it uses) from this distribution and moved into a separate gem: [chef-gen-flavor-base](https://github.com/jf647/chef-gen-flavor-base)
|
data/chef-gen-flavors.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: chef-gen-flavors 0.9.
|
2
|
+
# stub: chef-gen-flavors 0.9.1.20150911132844 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "chef-gen-flavors"
|
6
|
-
s.version = "0.9.
|
6
|
+
s.version = "0.9.1.20150911132844"
|
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-
|
12
|
-
s.description = "chef-gen-flavors is a framework for creating custom templates for the\n'chef generate' command provided by ChefDK.\n\nThis gem simply provides a framework; templates are provided by separate\ngems, which you can host privately for use within your organization or\npublicly for the Chef community to use.\n\nAt present this is focused primarily on providing templates for
|
11
|
+
s.date = "2015-09-11"
|
12
|
+
s.description = "chef-gen-flavors is a framework for creating custom templates for the\n'chef generate' command provided by ChefDK.\n\nThis gem simply provides a framework; templates are provided by separate\ngems, which you can host privately for use within your organization or\npublicly for the Chef community to use.\n\n[chef-gen-flavor-base](https://github.com/jf647/chef-gen-flavor-base) is\na base class that makes it easy to compose a flavor from reusable\nsnippets of functionality, and using it is highly recommended. Using\nchef-gen-flavors on its own is only suitable if you already have a\ntemplate which is a copy of the skeleton provided by ChefDK.\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 = ["ARUBA_STEPS.md", "History.md", "Manifest.txt", "README.md"]
|
15
15
|
s.files = ["ARUBA_STEPS.md", "History.md", "LICENSE", "Manifest.txt", "README.md", "chef-gen-flavors.gemspec", "lib/chef_gen/flavor.rb", "lib/chef_gen/flavors.rb", "lib/chef_gen/flavors/cucumber.rb", "lib/chef_gen/flavors/cucumber/bundle.rb", "lib/chef_gen/flavors/cucumber/chefdk.rb", "lib/chef_gen/flavors/cucumber/kitchen.rb", "lib/chef_gen/flavors/cucumber/knife.rb", "lib/chef_gen/flavors/cucumber/rake.rb", "lib/chef_gen/flavors/cucumber/regex.rb"]
|
data/lib/chef_gen/flavors.rb
CHANGED
@@ -8,7 +8,7 @@ module ChefGen
|
|
8
8
|
# a plugin framework for creating ChefDK generator flavors
|
9
9
|
class Flavors
|
10
10
|
# the version of the gem
|
11
|
-
VERSION = '0.9.
|
11
|
+
VERSION = '0.9.1'
|
12
12
|
|
13
13
|
extend LittlePlugger path: 'chef_gen/flavor',
|
14
14
|
module: ChefGen::Flavor
|
@@ -28,7 +28,7 @@ module ChefGen
|
|
28
28
|
$stdout.puts "using ChefGen flavor '#{selected}'"
|
29
29
|
|
30
30
|
# return early if we're using the builtin flavor
|
31
|
-
return
|
31
|
+
return chefdk_generator_cookbook_path if :builtin == selected
|
32
32
|
|
33
33
|
# get a temp dir
|
34
34
|
tmpdir = create_tmpdir(selected)
|
@@ -61,7 +61,7 @@ module ChefGen
|
|
61
61
|
def plugin_from_env
|
62
62
|
if ENV.key?('CHEFGEN_FLAVOR')
|
63
63
|
candidate = ENV['CHEFGEN_FLAVOR'].downcase.to_sym
|
64
|
-
return candidate if plugins.key?(candidate)
|
64
|
+
return candidate if @plugins.key?(candidate)
|
65
65
|
end
|
66
66
|
nil
|
67
67
|
end
|
@@ -135,6 +135,17 @@ module ChefGen
|
|
135
135
|
descr
|
136
136
|
end
|
137
137
|
# :nocov:
|
138
|
+
|
139
|
+
# return the path to the code_generator cookbook that comes with ChefDK
|
140
|
+
# @return [String] the path to the code_generator cookbook
|
141
|
+
# @api private
|
142
|
+
def chefdk_generator_cookbook_path
|
143
|
+
require 'rubygems'
|
144
|
+
spec = Gem::Specification.find_by_name('chef-dk')
|
145
|
+
File.join(
|
146
|
+
spec.gem_dir, 'lib', 'chef-dk', 'skeletons', 'code_generator'
|
147
|
+
)
|
148
|
+
end
|
138
149
|
end
|
139
150
|
end
|
140
151
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-gen-flavors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
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: little-plugger
|