Class: Hbc::Download

Inherits:
Object
  • Object
show all
Defined in:
Library/Homebrew/cask/lib/hbc/download.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cask, force: false) ⇒ Download

Returns a new instance of Download



8
9
10
11
# File 'Library/Homebrew/cask/lib/hbc/download.rb', line 8

def initialize(cask, force: false)
  @cask = cask
  @force = force
end

Instance Attribute Details

#caskObject (readonly)

Returns the value of attribute cask



6
7
8
# File 'Library/Homebrew/cask/lib/hbc/download.rb', line 6

def cask
  @cask
end

Instance Method Details

#performObject



13
14
15
16
17
# File 'Library/Homebrew/cask/lib/hbc/download.rb', line 13

def perform
  clear_cache
  fetch
  downloaded_path
end