class Cucumber::Cli::ProfileLoader

def cucumber_file

in a .config/ or config/ subdirectory of the current directory.
and be located in the current directory (eg. project root) or
Locates cucumber.yml file. The file can end in .yml or .yaml,
def cucumber_file
  @cucumber_file ||= Dir.glob('{,.config/,config/}cucumber{.yml,.yaml}').first
end