Sha256: f4b325159693606904e9c31a64c527adac588e7c2834cfc3bf5209b0c35d66a6

Contents?: true

Size: 401 Bytes

Versions: 11

Compression:

Stored size: 401 Bytes

Contents

# -*- encoding: utf-8 -*-
module Bluepill
  module ProcessConditions
    class ProcessCondition
      def initialize(options = {})
        @options = options
      end

      def run(pid, include_children)
        raise "Implement in subclass!"
      end

      def check(value)
        raise "Implement in subclass!"
      end

      def format_value(value)
        value
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
cloud66-bluepill-0.0.64 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.68 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.67 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.66 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.65 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.64 lib/bluepill/process_conditions/process_condition.rb
cloud66-bluepill-0.0.63 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.63 lib/bluepill/process_conditions/process_condition.rb
cloud66-bluepill-0.0.62 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.62 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.61 lib/bluepill/process_conditions/process_condition.rb