Sha256: 725b0500f73809b336bcc1cd4d6032add2c57200ef5ac16550a281504cc1ed91

Contents?: true

Size: 382 Bytes

Versions: 23

Compression:

Stored size: 382 Bytes

Contents

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

      def run(pid)
        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

23 entries across 23 versions & 5 rubygems

Version Path
bluepill-rwgps-0.0.63 lib/bluepill/process_conditions/process_condition.rb
bluepill-rwgps-0.0.62 lib/bluepill/process_conditions/process_condition.rb
bluepill-rwgps-0.0.61 lib/bluepill/process_conditions/process_condition.rb
bluepill-rwgps-0.0.60 lib/bluepill/process_conditions/process_condition.rb
kostya-bluepill-0.0.60.3 lib/bluepill/process_conditions/process_condition.rb
kostya-bluepill-0.0.60.2 lib/bluepill/process_conditions/process_condition.rb
kostya-bluepill-0.0.60.1 lib/bluepill/process_conditions/process_condition.rb
skalar-bluepill-0.0.60.1 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.60 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.59 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.58 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.57 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.56 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.55 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.54 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.53 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.52 lib/bluepill/process_conditions/process_condition.rb
ryansch-bluepill-0.0.53 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.51 lib/bluepill/process_conditions/process_condition.rb
bluepill-0.0.50 lib/bluepill/process_conditions/process_condition.rb