Sha256: a9373df990098f2769cdb889685a78c40a2280489519e44e7ebbe81034ae24ae

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

module Pione
  module Global
    #
    # synchronization
    #

    # This is global lock for PIONE system.
    define_internal_item(:monitor) do |item|
      item.desc = "global lock for PIONE system"
      item.init = Monitor.new
    end

    #
    # PIONE's process model
    #

    # This is the command object of this process.
    define_internal_item(:command) do |item|
      item.desc = "command object of this process"
    end

    # This is the front server of this process.
    define_internal_item(:front) do |item|
      item.desc = "front object of this process"
    end

    # This process exits with this status.
    define_internal_item(:exit_status) do |item|
      item.desc = "exit status of this process"
      item.init = true
    end

    #
    # user interface
    #

    define_external_item(:color_enabled) do |item|
      item.desc = "availability of color mode"
      item.init = true
    end

    #
    # misc
    #

    define_external_item(:features) do |item|
      item.desc = "string of features for this system"
      item.init = "*"
    end

    define_computed_item(:expressional_features, [:features]) do |item|
      item.desc = "expression of features for this system"
      item.define_updater {Util.parse_features(Global.features)}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pione-0.3.2 lib/pione/global/system-variable.rb
pione-0.3.1 lib/pione/global/system-variable.rb