Class: Juggle::Op::Remote

Inherits:
Base
  • Object
show all
Defined in:
lib/juggle/ops/remote.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#env, #opts

Instance Method Summary collapse

Methods inherited from Base

default_opts, #initialize

Constructor Details

This class inherits a constructor from Juggle::Op::Base

Instance Attribute Details

#urlObject

Returns the value of attribute url.



7
8
9
# File 'lib/juggle/ops/remote.rb', line 7

def url
  @url
end

Instance Method Details

#make(url) ⇒ Object



9
10
11
# File 'lib/juggle/ops/remote.rb', line 9

def make(url)
  self.url = url
end

#manifestObject



17
18
19
# File 'lib/juggle/ops/remote.rb', line 17

def manifest
  raise "Cannot cache remote url #{url}"
end

#renderObject



13
14
15
# File 'lib/juggle/ops/remote.rb', line 13

def render
  open(url).read
end