Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Documenting cache_file.

  • Loading branch information...
commit affb151d19e57448823d2688be36ad642878529b 1 parent e754fc5
Elijah Miller authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  runkeeper.rb
2  runkeeper.rb
@@ -67,6 +67,8 @@ def self.open_url_and_cache_activities_page(user_name)
67 67 Nokogiri::HTML(raw_html)
68 68 end
69 69
  70 + # Stores contents at path, completely overwriting the previous
  71 + # file. Automatically creates any directories needed.
70 72 def self.cache_file(path, contents)
71 73 FileUtils.mkdir_p(File.dirname(path))
72 74 File.open(path, 'w') do |file|

0 comments on commit affb151

Please sign in to comment.
Something went wrong with that request. Please try again.