module Nucop::Helpers::FilePathHelper

Public Instance Methods

acceptance_or_spec_file?(filepath) click to toggle source
# File lib/nucop/helpers/file_path_helper.rb, line 4
def acceptance_or_spec_file?(filepath)
  Pathname.new(filepath).fnmatch?(File.join("**", "{spec,acceptance}", "**"), File::FNM_EXTGLOB)
end
support_file?(filepath) click to toggle source
# File lib/nucop/helpers/file_path_helper.rb, line 8
def support_file?(filepath)
  Pathname.new(filepath).fnmatch?(File.join("**", "support", "**"), File::FNM_EXTGLOB)
end