Skip to content

Commit

Permalink
Move the requires outside of the deps blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkare committed Jun 30, 2016
1 parent 516378b commit 6d33d2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions lib/chef/knife/data_bag_inspect.rb
@@ -1,14 +1,9 @@
require 'chef/knife'
require 'health_inspector'

class Chef
class Knife
class DataBagInspect < Knife
# :nocov:
deps do
require 'health_inspector'
end
# :nocov:

banner 'knife data bag inspect [BAG] [ITEM] (options)'

def run
Expand Down
7 changes: 1 addition & 6 deletions lib/chef/knife/inspect.rb
@@ -1,16 +1,11 @@
require 'chef/knife'
require 'health_inspector'

class Chef
class Knife
class Inspect < Knife
CHECKLISTS = %w(Cookbooks DataBags DataBagItems Environments Roles)

# :nocov:
deps do
require 'health_inspector'
end
# :nocov:

banner 'knife inspect'

CHECKLISTS.each do |checklist|
Expand Down

0 comments on commit 6d33d2e

Please sign in to comment.