Class: Capistrano::Configuration::Extensions::Actions::Invocation::BlockProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/configuration/extensions/actions/invocation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBlockProxy

Returns a new instance of BlockProxy.



10
11
12
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 10

def initialize
  @blocks = []
end

Instance Attribute Details

#blocksObject

Returns the value of attribute blocks.



8
9
10
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 8

def blocks
  @blocks
end

Instance Method Details

#run(&block) ⇒ Object



14
15
16
# File 'lib/capistrano/configuration/extensions/actions/invocation.rb', line 14

def run(&block)
  blocks << block
end