Sha256: e445c399d5846e2b6362a726b7b07732f5d7358de19de4fba9d853a2e3f66e74
Contents?: true
Size: 471 Bytes
Versions: 17
Compression:
Stored size: 471 Bytes
Contents
module Shamu module Features module Conditions # Match against the current host machine's name. class Hosts < Conditions::Condition # (see Condition#match?) def match?( context ) hosts.any? { |h| h.match( context.host ) } end private def hosts @hosts ||= Array( config ).map do |entry| Regexp.new( entry, true ) end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems