summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-16 10:28:29 -0700
committerTim Smith <tsmith84@gmail.com>2016-03-16 10:28:29 -0700
commitb7ac062212c038c23226a64bea5acb77d95a0775 (patch)
tree5c91c6fb283541acdae051973b25a7326ebbb817
parent0b831a7679bd827657146b0c182dbbb8a27f45a8 (diff)
downloadmixlib-cli-b7ac062212c038c23226a64bea5acb77d95a0775.tar.gz
Resolve chefstyle warnings
-rw-r--r--lib/mixlib/cli.rb18
-rw-r--r--mixlib-cli.gemspec2
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index b3f108e..887d05f 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -231,15 +231,15 @@ module Mixlib
opt_args = build_option_arguments(opt_val)
opt_method = case opt_val[:on]
- when :on
- :on
- when :tail
- :on_tail
- when :head
- :on_head
- else
- raise ArgumentError, "You must pass :on, :tail, or :head to :on"
- end
+ when :on
+ :on
+ when :tail
+ :on_tail
+ when :head
+ :on_head
+ else
+ raise ArgumentError, "You must pass :on, :tail, or :head to :on"
+ end
parse_block =
Proc.new() do |c|
diff --git a/mixlib-cli.gemspec b/mixlib-cli.gemspec
index d131f9e..a1e1b2f 100644
--- a/mixlib-cli.gemspec
+++ b/mixlib-cli.gemspec
@@ -23,5 +23,5 @@ Gem::Specification.new do |s|
s.require_path = "lib"
s.files = %w{LICENSE README.md Gemfile Rakefile NOTICE} + Dir.glob("*.gemspec") +
- Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
+ Dir.glob("{lib,spec}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory?(f) }
end