Method: Onceover::Controlrepo#r10k_config_file

Defined in:
lib/onceover/controlrepo.rb

#r10k_config_fileObject


468
469
470
471
472
473
474
475
476
477
# File 'lib/onceover/controlrepo.rb', line 468

def r10k_config_file
  case
  when File.exist?(File.expand_path('./r10k.yaml', @spec_dir))
    File.expand_path('./r10k.yaml', @spec_dir)
  when File.exist?(File.expand_path('./r10k.yaml', @root))
    File.expand_path('./r10k.yaml', @root)
  else
    nil
  end
end