knife-helper 0.0.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f2346b8f815a790aee2fc611d0a2487e9f80893c
4
+ data.tar.gz: f7a7fe20d1895c448b21870d8749a78f5b555fd4
5
+ SHA512:
6
+ metadata.gz: 631f756d11bef99b2b851c87a0213094416c45764fb9bd11b61993de8e15b178c49925f91576a4c261954b3785848571b2ddb1171d42527568d2c5de7ff06b41
7
+ data.tar.gz: 31fda5f76f7db025eda6360f68e1b96d5d1f2cf378128ee4e6def55e31b42de8efadd871ee80d32120dde4ac6638fca97fa8ee0a722e4c6f309db7d5d48df05d
@@ -0,0 +1,18 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
15
+ /.chef
16
+ /.knife.helper.yml
17
+ /Cheffile
18
+ /Berksfile
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --require spec_helper
@@ -0,0 +1,15 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 2.1
5
+ - 2.0.0
6
+ - ruby-head
7
+
8
+ matrix:
9
+ allow_failures:
10
+ - rvm: ruby-head
11
+
12
+ script:
13
+ - bundle exec rake
14
+ - bundle exec knife helper init -B -L
15
+ - bundle exec knife helper exec default
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in knife-helper.gemspec
4
+ gemspec
@@ -0,0 +1,15 @@
1
+ Author:: Masashi Terui (<marcy9114@gmail.com>)
2
+
3
+ Copyright (C) 2015, Masashi Terui
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
@@ -0,0 +1,98 @@
1
+ # Knife::Helper
2
+
3
+ Helper and Command builder for `knife` (`chef-server`, `knife-zero`, etc)
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'knife-helper'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install knife-helper
20
+
21
+ ## Usage
22
+
23
+ ### knife helper init
24
+ Generate `.knife.helper.yml`,`.chef/knife.rb` and `Berksfile`,`Cheffile`(by option)
25
+
26
+ ```
27
+ $ knife helper init (options)
28
+ -c [PATH1,PATH2...], Path to Cookbooks
29
+ --cookbook-path
30
+ -l, --local local mode (for zero)
31
+ -r, --repo-path PATH Path to Chef Repogitory
32
+ -B, --berks Generate Berksfile
33
+ -L, --librarian Generate Cheffile
34
+ ```
35
+
36
+ ### knife helper exec
37
+ Execute some command that built from the configuration file.
38
+
39
+ ```
40
+ $ knife helper exec NAME (option)
41
+ -f, --file FILE Path to config file(yaml)
42
+ -p, --print-only Only print the command that built by helper
43
+ ```
44
+
45
+ ## Configuration
46
+
47
+ ```yaml
48
+ ---
49
+ settings:
50
+ exec_path: /home/marcy/.rbenv/versions/2.1.5/bin/knife
51
+
52
+ commands:
53
+ - name: default
54
+ command: help
55
+ condition:
56
+ options:
57
+ ```
58
+
59
+ ### settings:exec_path
60
+ Path to `knife` execution script.
61
+
62
+ ### commands:name
63
+ Command name for execution.
64
+
65
+ ### commands:condition
66
+ Condition for search and execute command.
67
+
68
+ ### commands:option
69
+ Command options.
70
+
71
+
72
+ ## Contributing
73
+
74
+ * Source hosted at [GitHub][repo]
75
+ * Report issues/questions/feature requests on [GitHub Issues][issues]
76
+
77
+ Pull requests are very welcome! Make sure your patches are well tested.
78
+ Ideally create a topic branch for every separate change you make. For
79
+ example:
80
+
81
+ 1. Fork the repo
82
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
83
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
84
+ 4. Push to the branch (`git push origin my-new-feature`)
85
+ 5. Create new Pull Request
86
+
87
+ ## Authors
88
+
89
+ Created and maintained by [Masashi Terui][author] (<marcy9114@gmail.com>)
90
+
91
+ ## License
92
+
93
+ Apache 2.0 (see [LICENSE][license])
94
+
95
+ [author]: https://github.com/marcy-terui
96
+ [issues]: https://github.com/marcy-terui/knife-helper/issues
97
+ [license]: https://github.com/marcy-terui/knife-helper/blob/master/LICENSE.txt
98
+ [repo]: https://github.com/marcy-terui/knife-helper
@@ -0,0 +1,9 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rake/testtask'
3
+
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec) do |spec|
6
+ spec.pattern = 'spec/**/*_spec.rb'
7
+ end
8
+
9
+ task :default => [:spec]
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'knife/helper/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "knife-helper"
8
+ spec.version = Knife::Helper::VERSION
9
+ spec.authors = ["Masashi Terui"]
10
+ spec.email = ["marcy9114@gmail.com"]
11
+ spec.summary = %q{Helper and Command builder for knife}
12
+ spec.description = %q{Helper and Command builder for knife (chef-server, knife-zero, etc)}
13
+ spec.homepage = "https://github.com/marcy-terui/knife-helper"
14
+ spec.license = "Apache 2.0"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "thor"
22
+ spec.add_dependency "chef"
23
+ spec.add_dependency "safe_yaml"
24
+
25
+ spec.add_development_dependency "bundler", "~> 1.7"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec"
28
+ end
@@ -0,0 +1,59 @@
1
+ require 'chef'
2
+ require 'safe_yaml'
3
+ require 'erb'
4
+ require 'knife/helper/commands'
5
+
6
+ class Chef
7
+ class Knife
8
+ class HelperExec < Chef::Knife
9
+
10
+ banner "knife helper exec NAME (option)"
11
+
12
+ option :print_command,
13
+ :short => "-p",
14
+ :long => "--print-only",
15
+ :description => "Only print the command that built by helper",
16
+ :boolean => true,
17
+ :default => false
18
+
19
+ option :file,
20
+ :short => "-f FILE",
21
+ :long => "--file FILE",
22
+ :description => "Path to config file(yaml)",
23
+ :default => ""
24
+
25
+ def run
26
+ file = config[:file] == "" ? default_config_file : config[:file]
27
+ commands = ::Knife::Helper::Commands.new(
28
+ load_yml(get_content(read_file(file)))
29
+ )
30
+ @name_args.each do |cmd|
31
+ if config[:print_command]
32
+ puts commands.build(cmd)
33
+ else
34
+ commands.exec(cmd)
35
+ end
36
+ end
37
+ end
38
+
39
+ private
40
+
41
+ def read_file(file)
42
+ ::File.exist?(file.to_s) ? IO.read(file) : ""
43
+ end
44
+
45
+ def default_config_file
46
+ ::File.join(Dir.pwd, ".knife.helper.yml")
47
+ end
48
+
49
+ def get_content(str)
50
+ ::ERB.new(str).result
51
+ end
52
+
53
+ def load_yml(str)
54
+ ::SafeYAML.load(str) || Hash.new
55
+ end
56
+
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,75 @@
1
+ require 'chef'
2
+ require 'knife/helper/template'
3
+
4
+ class Chef
5
+ class Knife
6
+ class HelperInit < Chef::Knife
7
+
8
+ banner "knife helper init (options)"
9
+
10
+ option :use_local_mode,
11
+ :short => "-l",
12
+ :long => "--local",
13
+ :description => "local mode (for zero)",
14
+ :boolean => true,
15
+ :default => false
16
+
17
+ option :cookbook_path,
18
+ :short => "-c [PATH1,PATH2...]",
19
+ :long => "--cookbook-path [PATH1,PATH2...]",
20
+ :description => "Path to Cookbooks",
21
+ :default => "./cookbooks,./site-cookbooks"
22
+
23
+ option :repo_path,
24
+ :short => "-r PATH",
25
+ :long => "--repo-path PATH",
26
+ :description => "Path to Chef Repogitory",
27
+ :default => "./"
28
+
29
+ option :use_berks,
30
+ :short => "-B",
31
+ :long => "--berks",
32
+ :description => "Generate Berksfile",
33
+ :boolean => true,
34
+ :default => false
35
+
36
+ option :use_librarian,
37
+ :short => "-L",
38
+ :long => "--librarian",
39
+ :description => "Generate Cheffile",
40
+ :boolean => true,
41
+ :default => false
42
+
43
+ def run
44
+ create_helper_yml
45
+ create_knife_rb
46
+ create_berks if config[:use_berks]
47
+ create_librarian if config[:use_librarian]
48
+ end
49
+
50
+ private
51
+
52
+ def create_helper_yml
53
+ ::Knife::Helper::Template.new("helper.yml.erb", ".knife.helper.yml",
54
+ :exec_path => $0
55
+ ).flush
56
+ end
57
+
58
+ def create_knife_rb
59
+ ::Knife::Helper::Template.new("knife.rb.erb", ".chef/knife.rb",
60
+ :local_mode => config[:use_local_mode].to_s,
61
+ :cookbook_path => config[:cookbook_path].split(',').to_s,
62
+ :repo_path => "\"#{config[:repo_path]}\""
63
+ ).flush
64
+ end
65
+
66
+ def create_berks
67
+ ::Knife::Helper::Template.new("Berksfile.erb", "Berksfile").flush
68
+ end
69
+
70
+ def create_librarian
71
+ ::Knife::Helper::Template.new("Cheffile.erb", "Cheffile").flush
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,7 @@
1
+ require "knife/helper/version"
2
+
3
+ module Knife
4
+ module Helper
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,43 @@
1
+
2
+ module Knife
3
+ module Helper
4
+ class Commands
5
+
6
+ def initialize(config)
7
+ @base = config['settings']['exec_path']
8
+ @commands = config['commands']
9
+ end
10
+
11
+ def build(name)
12
+ cmd = ""
13
+ @commands.each do |c|
14
+ if c['name'] == name
15
+ cmd = @base
16
+ cmd << " #{c['command']}" if c.has_key?('command')
17
+ cmd << " '#{c['condition']}'" if c.has_key?('condition') && c['condition']
18
+ if c['options'].is_a?(Hash)
19
+ c['options'].each do |k,v|
20
+ cmd << " #{complete_option(k)}"
21
+ cmd << " #{v}" if v
22
+ end
23
+ end
24
+ break
25
+ end
26
+ end
27
+ cmd
28
+ end
29
+
30
+ def exec(name)
31
+ system(build(name))
32
+ end
33
+
34
+ def complete_option(opt)
35
+ if opt.length > 1
36
+ "--#{opt}"
37
+ else
38
+ "-#{opt}"
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,27 @@
1
+ require 'pathname'
2
+ require 'thor/group'
3
+
4
+ module Knife
5
+ module Helper
6
+ class Template < Thor::Group
7
+
8
+ include Thor::Actions
9
+
10
+ def initialize(source, target, params={})
11
+ super()
12
+ self.class.source_root(
13
+ Pathname.new(File.expand_path("../../../../", __FILE__)).join("templates")
14
+ )
15
+ @source = source
16
+ @target = target
17
+ @params = params
18
+ end
19
+
20
+ def flush()
21
+ template(@source, @target,
22
+ @params
23
+ )
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,5 @@
1
+ module Knife
2
+ module Helper
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,51 @@
1
+ require 'spec_helper'
2
+ require 'knife/helper/commands'
3
+
4
+ describe Knife::Helper::Commands do
5
+ before do
6
+ @cmd = Knife::Helper::Commands.new(config)
7
+ end
8
+
9
+ let(:config) do
10
+ {
11
+ 'settings' => {
12
+ 'exec_path' => '/test/knife'
13
+ },
14
+ 'commands' => [
15
+ {
16
+ 'name' => 'knife-zero',
17
+ 'command' => 'zero chef_client',
18
+ 'condition' => 'name:*',
19
+ 'options' => {
20
+ 'sudo' => nil,
21
+ 'x' => 'ubuntu',
22
+ 'attribute' => 'ipaddress'
23
+ }
24
+ },
25
+ {
26
+ 'name' => 'help',
27
+ 'command' => 'help',
28
+ 'condition' => nil,
29
+ 'options' => nil
30
+ }
31
+ ]
32
+ }
33
+ end
34
+
35
+ describe '#build' do
36
+ example do
37
+ expect(@cmd.build('knife-zero')).to eq(
38
+ '/test/knife zero chef_client \'name:*\' --sudo -x ubuntu --attribute ipaddress')
39
+ end
40
+ example do
41
+ expect(@cmd.build('help')).to eq(
42
+ '/test/knife help')
43
+ end
44
+ end
45
+
46
+ describe '#complete_option' do
47
+ example {expect(@cmd.complete_option('a')).to eq '-a'}
48
+ example {expect(@cmd.complete_option('aa')).to eq '--aa'}
49
+ end
50
+
51
+ end
@@ -0,0 +1,91 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Limits the available syntax to the non-monkey patched syntax that is
54
+ # recommended. For more details, see:
55
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
56
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
57
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
58
+ config.disable_monkey_patching!
59
+
60
+ # This setting enables warnings. It's recommended, but in some cases may
61
+ # be too noisy due to issues in dependencies.
62
+ config.warnings = true
63
+
64
+ # Many RSpec users commonly either run the entire suite or an individual
65
+ # file, and it's useful to allow more verbose output when running an
66
+ # individual spec file.
67
+ if config.files_to_run.one?
68
+ # Use the documentation formatter for detailed output,
69
+ # unless a formatter has already been configured
70
+ # (e.g. via a command-line flag).
71
+ config.default_formatter = 'doc'
72
+ end
73
+
74
+ # Print the 10 slowest examples and example groups at the
75
+ # end of the spec run, to help surface which specs are running
76
+ # particularly slow.
77
+ config.profile_examples = 10
78
+
79
+ # Run specs in random order to surface order dependencies. If you find an
80
+ # order dependency and want to debug it, you can fix the order by providing
81
+ # the seed, which is printed after each run.
82
+ # --seed 1234
83
+ config.order = :random
84
+
85
+ # Seed global randomization in this process using the `--seed` CLI option.
86
+ # Setting this allows you to use `--seed` to deterministically reproduce
87
+ # test failures related to randomization by passing the same `--seed` value
88
+ # as the one that triggered the failure.
89
+ Kernel.srand config.seed
90
+ =end
91
+ end
@@ -0,0 +1,4 @@
1
+ # A sample Berksfile
2
+ source "https://supermarket.chef.io"
3
+
4
+ # cookbook "mysql"
@@ -0,0 +1,4 @@
1
+ # A sample Cheffile
2
+ site "https://supermarket.getchef.com/api/v1"
3
+
4
+ # cookbook "mysql"
@@ -0,0 +1,9 @@
1
+ ---
2
+ settings:
3
+ exec_path: <%= config[:exec_path] %>
4
+
5
+ commands:
6
+ - name: default
7
+ command:
8
+ condition:
9
+ options:
@@ -0,0 +1,3 @@
1
+ local_mode <%= config[:local_mode] %>
2
+ cookbook_path <%= config[:cookbook_path] %>
3
+ chef_repo_path <%= config[:repo_path] %>
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: knife-helper
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Masashi Terui
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-04-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: chef
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: safe_yaml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.7'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '10.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '10.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ description: Helper and Command builder for knife (chef-server, knife-zero, etc)
98
+ email:
99
+ - marcy9114@gmail.com
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".rspec"
106
+ - ".travis.yml"
107
+ - Gemfile
108
+ - LICENSE.txt
109
+ - README.md
110
+ - Rakefile
111
+ - knife-helper.gemspec
112
+ - lib/chef/knife/helper_exec.rb
113
+ - lib/chef/knife/helper_init.rb
114
+ - lib/knife/helper.rb
115
+ - lib/knife/helper/commands.rb
116
+ - lib/knife/helper/template.rb
117
+ - lib/knife/helper/version.rb
118
+ - spec/knife/helper/commands_spec.rb
119
+ - spec/spec_helper.rb
120
+ - templates/Berksfile.erb
121
+ - templates/Cheffile.erb
122
+ - templates/helper.yml.erb
123
+ - templates/knife.rb.erb
124
+ homepage: https://github.com/marcy-terui/knife-helper
125
+ licenses:
126
+ - Apache 2.0
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.2.2
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Helper and Command builder for knife
148
+ test_files:
149
+ - spec/knife/helper/commands_spec.rb
150
+ - spec/spec_helper.rb