Method: Beaker::DSL::Patterns#block_on
- Defined in:
- lib/beaker/dsl/patterns.rb
#block_on(hosts_or_filter, opts = {}, &block) ⇒ Array<Result>, ...
Execute a block selecting the hosts that match with the provided criteria
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/beaker/dsl/patterns.rb', line 26 def block_on hosts_or_filter, opts={}, &block block_hosts = nil if defined? hosts block_hosts = hosts end filter = nil if hosts_or_filter.is_a? String or hosts_or_filter.is_a? Symbol filter = hosts_or_filter else block_hosts = hosts_or_filter end run_block_on block_hosts, filter, opts, &block end |