Sha256: 54629aa9e973a18ba653737b5da2ac3e9987d37a8c2568a7b5876b397dd214b2

Contents?: true

Size: 854 Bytes

Versions: 6

Compression:

Stored size: 854 Bytes

Contents

module Pione
  module Global
    # This is a begin number of port range for client's front.
    define_external_item(:client_front_port_range_begin) do |item|
      item.desc = "start port number of client front"
      item.init = 40000
    end

    # This is an end number of port range for client's front.
    define_external_item(:client_front_port_range_end) do |item|
      item.desc = "end port number of client front"
      item.init = 40099
    end

    # This is port range for client's front.
    define_computed_item(:client_front_port_range, [:client_front_port_range_begin, :client_front_port_range_end]) do |item|
      item.desc = "port range of client front"
      item.define_updater do
        Range.new(
          Global.client_front_port_range_begin,
          Global.client_front_port_range_end
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pione-0.5.0 lib/pione/global/client-variable.rb
pione-0.5.0.alpha.2 lib/pione/global/client-variable.rb
pione-0.5.0.alpha.1 lib/pione/global/client-variable.rb
pione-0.4.2 lib/pione/global/client-variable.rb
pione-0.4.1 lib/pione/global/client-variable.rb
pione-0.4.0 lib/pione/global/client-variable.rb