Class: Kar::URITask

Inherits:
Rake::TaskLib
  • Object
show all
Includes:
Util
Defined in:
lib/kar/uritask.rb

Overview

Instanctiated in DSL#download

Defined Under Namespace

Modules: Util

Instance Method Summary collapse

Methods included from Util

fetch_http

Constructor Details

#initialize(file_and_uri) ⇒ URITask

Returns a new instance of URITask.



46
47
48
49
50
# File 'lib/kar/uritask.rb', line 46

def initialize(file_and_uri)
  @to = file_and_uri.keys.first
  @uri = URI(file_and_uri.values.first)
  define
end