lib/rake/data/dsl.rb
# Load a file from the internet
Load a file from the internet
Load a file from the internet
def url( dest, source )
      file dest do
        puts "Loading #{source}"
        if !File.exists?( dest )
          mkdir_p dest.to_s.pathmap( "%d" )
          sh "curl -L '#{source}' > #{dest}"
        end
      end
    end
def url ( dest , source ) file dest do puts "Loading #{source}" if ! File . exists? ( dest ) mkdir_p dest . to_s . pathmap ( "%d" ) sh "curl -L '#{source}' > #{dest}" end end end
Load a file from the internet
Load a file from the internet
dest
source