module Crabfarm::Utils::Resolve
Public Instance Methods
memento_path(_name)
click to toggle source
# File lib/crabfarm/utils/resolve.rb, line 18 def memento_path(_name) File.join(mementos_path, _name.to_s + '.json.gz') end
reducer_class(_name)
click to toggle source
# File lib/crabfarm/utils/resolve.rb, line 12 def reducer_class(_name) if _name.is_a? String or _name.is_a? Symbol (Naming.decode_crabfarm_uri(_name.to_s) + 'Reducer').constantize else _name end end
snapshot_path(_name, _format)
click to toggle source
# File lib/crabfarm/utils/resolve.rb, line 22 def snapshot_path(_name, _format) _name = self.to_s.underscore if _name.nil? File.join(snapshots_path, _name + '.' + _format) end
Private Instance Methods
mementos_path()
click to toggle source
# File lib/crabfarm/utils/resolve.rb, line 29 def mementos_path File.join(Crabfarm.app_path, 'spec/mementos') end
snapshots_path()
click to toggle source
# File lib/crabfarm/utils/resolve.rb, line 33 def snapshots_path File.join(Crabfarm.app_path, 'spec/snapshots') end