diff options
Diffstat (limited to 'lib/chef/knife/environment_list.rb')
-rw-r--r-- | lib/chef/knife/environment_list.rb | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/chef/knife/environment_list.rb b/lib/chef/knife/environment_list.rb index f278046bf9..7bcdeb6084 100644 --- a/lib/chef/knife/environment_list.rb +++ b/lib/chef/knife/environment_list.rb @@ -1,6 +1,6 @@ # # Author:: Stephen Delano (<stephen@chef.io>) -# Copyright:: Copyright 2010-2016, Chef Software Inc. +# Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,23 +16,22 @@ # limitations under the License. # -require "chef/knife" +require_relative "../knife" class Chef class Knife class EnvironmentList < Knife deps do - require "chef/environment" - require "chef/json_compat" + require_relative "../environment" end banner "knife environment list (options)" option :with_uri, - :short => "-w", - :long => "--with-uri", - :description => "Show corresponding URIs" + short: "-w", + long: "--with-uri", + description: "Show corresponding URIs." def run output(format_list_for_display(Chef::Environment.list)) |