Sha256: b6427dd419593c62494270a090bb06ecd0572dae1649010375aa7d0303f18c11
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
module LitmusPaper module Dependency class Script def initialize(command, options = {}) @command = command @timeout = options.fetch(:timeout, 5) end def available? Timeout.timeout(@timeout) do system @command end rescue Timeout::Error false end def to_s "Dependency::Script(#{@command})" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
litmus_paper-0.7.0 | lib/litmus_paper/dependency/script.rb |