Sha256: 41b8beea3e4c8e6c071712f4b636a365c36b734ac470a1f0da47c8b04b8a6f4a
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
class DataMiner class Verify attr_reader :config attr_reader :description attr_reader :blk def initialize(config, description, &blk) @config = config @description = description @blk = blk end def resource config.resource end def inspect %{#<DataMiner::Verify(#{resource}) (#{description})>} end def run successful = begin blk.call rescue => e false end unless successful raise VerificationFailed, "FAILED VERIFICATION: #{inspect}" end nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
data_miner-1.1.4 | lib/data_miner/verify.rb |
data_miner-1.1.3 | lib/data_miner/verify.rb |
data_miner-1.1.2 | lib/data_miner/verify.rb |