lib/ohai/application.rb in ohai-8.7.0 vs lib/ohai/application.rb in ohai-8.8.0
- old
+ new
@@ -13,10 +13,11 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+require 'chef-config/path_helper'
require 'chef-config/workstation_config_loader'
require 'ohai'
require 'ohai/log'
require 'mixlib/cli'
@@ -30,10 +31,11 @@
:proc => lambda { |path| File.expand_path(path, Dir.pwd) }
option :directory,
:short => "-d DIRECTORY",
:long => "--directory DIRECTORY",
- :description => "A directory to add to the Ohai search path"
+ :description => "A directory to add to the Ohai search path",
+ :proc => lambda { |path| Ohai::Config.platform_specific_path(path) }
option :log_level,
:short => "-l LEVEL",
:long => "--log_level LEVEL",
:description => "Set the log level (debug, info, warn, error, fatal)",