Class | Capistrano::Role::DynamicServerList |
In: |
lib/capistrano/role.rb
lib/capistrano/role.rb |
Parent: | Object |
This is the combination of a block, a hash of options, and a cached value.
# File lib/capistrano/role.rb, line 45 45: def initialize (block, options) 46: @block = block 47: @options = options 48: @cached = [] 49: @is_cached = false 50: end
# File lib/capistrano/role.rb, line 45 45: def initialize (block, options) 46: @block = block 47: @options = options 48: @cached = [] 49: @is_cached = false 50: end
Clear the cached value
# File lib/capistrano/role.rb, line 62 62: def reset! 63: @cached.clear 64: @is_cached = false 65: end
Clear the cached value
# File lib/capistrano/role.rb, line 62 62: def reset! 63: @cached.clear 64: @is_cached = false 65: end