Method: Multisync::Catalog#path

Defined in:
lib/multisync/catalog.rb

#pathObject

Raises:

  • (RuntimeError.new)


31
32
33
34
35
# File 'lib/multisync/catalog.rb', line 31

def path
  return @path if File.exist? @path
  sample_path = File.expand_path('../../../sample/multisync.rb', __FILE__)
  raise RuntimeError.new, "No catalog found at #{@path}. Copy sample from #{sample_path} to #{@path} and adjust to your needs."
end