Class: Trackler::TrackFile

Inherits:
GuaranteedFile show all
Defined in:
lib/trackler/guaranteed_file.rb

Instance Attribute Summary

Attributes inherited from GuaranteedFile

#content

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GuaranteedFile

for

Class Method Details

.location(specification:, track:, filename:) ⇒ Object



30
31
32
# File 'lib/trackler/guaranteed_file.rb', line 30

def self.location(specification:, track:, filename:)
  File.join(specification.root, 'tracks', track.id, 'exercises', specification.slug, '.meta', filename)
end

Instance Method Details

#urlObject



34
35
36
# File 'lib/trackler/guaranteed_file.rb', line 34

def url
  "#{track.repository}/blob/master/exercises/%s/.meta/#{filename}" % specification.slug
end