Sha256: 281ae95ab9758fde9d385f85536a679ef78b9416c020003d09b4b070bfd31e7d

Contents?: true

Size: 287 Bytes

Versions: 5

Compression:

Stored size: 287 Bytes

Contents

module Bluepill
  module ProcessConditions
    class AlwaysTrue < ProcessCondition
      def initialize(options = {})
        @below = options[:below]
      end

      def run(_pid, _include_children)
        1
      end

      def check(_value)
        true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bluepill-0.1.3 lib/bluepill/process_conditions/always_true.rb
bluepill-0.1.2 lib/bluepill/process_conditions/always_true.rb
bluepill-0.1.1 lib/bluepill/process_conditions/always_true.rb
bluepill-0.0.70 lib/bluepill/process_conditions/always_true.rb
bluepill-0.0.69 lib/bluepill/process_conditions/always_true.rb