summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-08-12 11:19:55 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2016-08-16 18:41:25 -0700
commit5d3885ad2704e614cf74cb0baefaf2241fe8687a (patch)
tree775cef8b7c774cc201d4ba6c2a895e6e95d23786
parent43da5b5de2618290c09e5775063f7ec21ec5b667 (diff)
downloadchef-5d3885ad2704e614cf74cb0baefaf2241fe8687a.tar.gz
fix some Style/ExtraSpacing that crept into this patch
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/knife/cookbook_show.rb2
-rw-r--r--lib/chef/shell/ext.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/knife/cookbook_show.rb b/lib/chef/knife/cookbook_show.rb
index 615c1962be..d0c930de0a 100644
--- a/lib/chef/knife/cookbook_show.rb
+++ b/lib/chef/knife/cookbook_show.rb
@@ -63,7 +63,7 @@ class Chef
node[:platform_version] = config[:platform_version] if config.has_key?(:platform_version)
class << node
- def attribute?(name) # rubocop:disable Lint/NestedMethodDefinition
+ def attribute?(name) # rubocop:disable Lint/NestedMethodDefinition
has_key?(name)
end
end
diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb
index eab1d13e4d..0c10309521 100644
--- a/lib/chef/shell/ext.rb
+++ b/lib/chef/shell/ext.rb
@@ -39,13 +39,13 @@ module Shell
# irb breaks if you prematurely define IRB::JobMangager
# so these methods need to be defined at the latest possible time.
unless jobs.respond_to?(:select_session_by_context)
- def jobs.select_session_by_context(&block) # rubocop:disable Lint/NestedMethodDefinition
+ def jobs.select_session_by_context(&block) # rubocop:disable Lint/NestedMethodDefinition
@jobs.select { |job| block.call(job[1].context.main) }
end
end
unless jobs.respond_to?(:session_select)
- def jobs.select_shell_session(target_context) # rubocop:disable Lint/NestedMethodDefinition
+ def jobs.select_shell_session(target_context) # rubocop:disable Lint/NestedMethodDefinition
session = if target_context.kind_of?(Class)
select_session_by_context { |main| main.kind_of?(target_context) }
else