Loading lib/labkit/covered_experience.rb +2 −9 Original line number Diff line number Diff line Loading @@ -39,15 +39,8 @@ module Labkit # # @param directory [String, Pathname, nil] Custom directory path # @return [Pathname] Resolved directory path def resolve_directory_path(directory) if directory # Expand relative paths from the current working directory path = Pathname.new(directory) path.absolute? ? path : Pathname.new(Dir.pwd).join(path) else # Default to config/covered_experiences relative to the calling application's root Pathname.new(Dir.pwd).join('config', 'covered_experiences') end def resolve_directory_path(directory = File.join("config", "covered_experiences")) Pathname.new(Dir.pwd).join(directory) end def directory_exists?(directory_path) Loading Loading
lib/labkit/covered_experience.rb +2 −9 Original line number Diff line number Diff line Loading @@ -39,15 +39,8 @@ module Labkit # # @param directory [String, Pathname, nil] Custom directory path # @return [Pathname] Resolved directory path def resolve_directory_path(directory) if directory # Expand relative paths from the current working directory path = Pathname.new(directory) path.absolute? ? path : Pathname.new(Dir.pwd).join(path) else # Default to config/covered_experiences relative to the calling application's root Pathname.new(Dir.pwd).join('config', 'covered_experiences') end def resolve_directory_path(directory = File.join("config", "covered_experiences")) Pathname.new(Dir.pwd).join(directory) end def directory_exists?(directory_path) Loading