chef-flavor-flay 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flay/cli.rb +5 -2
- data/lib/flay/version.rb +1 -1
- data/shared/flavor/flay/files/default/Berksfile +1 -1
- data/shared/flavor/flay/resources/template.rb +2 -0
- data/shared/flavor/flay/templates/default/README.md.erb +1 -1
- data/shared/flavor/flay/templates/default/kitchen.yml.erb +1 -1
- data/shared/flavor/flay/templates/default/metadata.rb.erb +5 -3
- data/shared/flavor/flay/templates/default/recipe.rb.erb +1 -1
- data/shared/flavor/flay/templates/default/recipe_spec.rb.erb +2 -2
- data/shared/flavor/flay/templates/default/serverspec_default_spec.rb.erb +1 -1
- 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: 312ca9891aec8e1d22c7152b2b724da2fff7fe51
|
4
|
+
data.tar.gz: 23c89bbd5d72452143c9816d9ec40f2f36f08070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc58324e14fca32555fc35d976845cb7e073e18219b2412c730a10b62c9185b298bae005867412e119f4b74f480dd6f32033b9b6397cc5582ed71def2db4195
|
7
|
+
data.tar.gz: e0437f1a756f0021b89cdf2d02d9131d4f0900077240de72baf2f06189351566ebb592c08f313ddc3efa2555b3ea2bfdc754b7893109602973a88f44c025798b
|
data/lib/flay/cli.rb
CHANGED
@@ -10,12 +10,15 @@ class Flay::CLI < Thor
|
|
10
10
|
:chef_path,
|
11
11
|
type: :string,
|
12
12
|
desc: "The path that contains your knife.rb file",
|
13
|
-
default: "~/.chef-sweeper"
|
13
|
+
default: "~/.chef-sweeper/"
|
14
14
|
)
|
15
15
|
desc "link [--chef-path=PATH]", "symlinks .chef to --chef-path"
|
16
16
|
long_desc "Creates a symlink in the current directory from .chef to --chef-path"
|
17
17
|
def link
|
18
|
-
|
18
|
+
target_path = options.fetch("chef_path")
|
19
|
+
target_path << "/" unless target_path.end_with?("/")
|
20
|
+
|
21
|
+
create_link File.join(Dir.pwd, ".chef"), target_path
|
19
22
|
end
|
20
23
|
|
21
24
|
desc "version", "display the current version"
|
data/lib/flay/version.rb
CHANGED
@@ -7,6 +7,7 @@ property :use_helpers, [TrueClass, FalseClass], default: true
|
|
7
7
|
action :create do
|
8
8
|
template new_resource.name do
|
9
9
|
source new_resource.source
|
10
|
+
helper(:sanitized_cookbook_name) { cookbook_name.sub(/\Achef-/, "") }
|
10
11
|
helpers new_resource.helpers
|
11
12
|
end
|
12
13
|
end
|
@@ -14,6 +15,7 @@ end
|
|
14
15
|
action :create_if_missing do
|
15
16
|
template new_resource.name do
|
16
17
|
source new_resource.source
|
18
|
+
helper(:sanitized_cookbook_name) { cookbook_name.sub(/\Achef-/, "") }
|
17
19
|
helpers new_resource.helpers
|
18
20
|
action :create_if_missing
|
19
21
|
end
|
@@ -1,15 +1,17 @@
|
|
1
1
|
# rubocop:disable Style/SingleSpaceBeforeFirstArg
|
2
|
-
name "<%=
|
2
|
+
name "<%= sanitized_cookbook_name %>"
|
3
3
|
maintainer "<%= copyright_holder %>"
|
4
4
|
maintainer_email "<%= email %>"
|
5
5
|
license "<%= license %>"
|
6
|
-
description "Installs/Configures <%=
|
7
|
-
long_description "Installs/Configures <%=
|
6
|
+
description "Installs/Configures <%= sanitized_cookbook_name %>"
|
7
|
+
long_description "Installs/Configures <%= sanitized_cookbook_name %>"
|
8
8
|
version "0.1.0"
|
9
9
|
# rubocop:enable Style/SingleSpaceBeforeFirstArg
|
10
10
|
|
11
11
|
supports "ubuntu"
|
12
12
|
|
13
|
+
depends "core", "~> 0.0"
|
14
|
+
|
13
15
|
chef_version ">= 12.5" if respond_to?(:chef_version)
|
14
16
|
source_url "YOUR SOURCE REPO URL" if respond_to?(:source_url)
|
15
17
|
issues_url "WHERE TO LOG ISSUES" if respond_to?(:issues_url)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
#
|
2
|
-
# Cookbook Name:: <%=
|
2
|
+
# Cookbook Name:: <%= sanitized_cookbook_name %>
|
3
3
|
# Spec:: <%= recipe_name %>
|
4
4
|
#
|
5
5
|
<%= license_description("#").rstrip %>
|
6
6
|
|
7
|
-
describe "<%=
|
7
|
+
describe "<%= sanitized_cookbook_name %>::<%= recipe_name %>" do
|
8
8
|
cached(:chef_run) do
|
9
9
|
runner = ChefSpec::SoloRunner.new
|
10
10
|
runner.converge(described_recipe)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-flavor-flay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- pseudomuto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-gen-flavors
|