Class: Juggle::Op::Base

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

Direct Known Subclasses

Closure, Coffee, File, Remote, Template

Defined Under Namespace

Classes: NotImplemented

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, opts, *args, &blk) ⇒ Base

Returns a new instance of Base.



13
14
15
16
17
# File 'lib/juggle/ops/base.rb', line 13

def initialize(env, opts, *args, &blk)
  self.env = env
  self.opts = self.class.default_opts.merge!(opts)
  make(*args, &blk)
end

Instance Attribute Details

#envObject

Returns the value of attribute env.



5
6
7
# File 'lib/juggle/ops/base.rb', line 5

def env
  @env
end

#optsObject

Returns the value of attribute opts.



5
6
7
# File 'lib/juggle/ops/base.rb', line 5

def opts
  @opts
end

Class Method Details

.default_optsObject



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

def self.default_opts
  {}
end

Instance Method Details

#make(*args, &blk) ⇒ Object

Raises:



19
20
21
# File 'lib/juggle/ops/base.rb', line 19

def make(*args, &blk)
  raise NotImplemented
end

#manifestObject

Raises:



27
28
29
# File 'lib/juggle/ops/base.rb', line 27

def manifest
  raise NotImplemented
end

#renderObject

Raises:



23
24
25
# File 'lib/juggle/ops/base.rb', line 23

def render
  raise NotImplemented
end