Sha256: a21bdca4bfb86e9d2cd11aa942e94abdba66636132eb5ba0bd526972b55f0204

Contents?: true

Size: 900 Bytes

Versions: 23

Compression:

Stored size: 900 Bytes

Contents

module Logical::Naf::ConstructionZone
  class AdHocWorkOrder < WorkOrder
    def initialize(*parameters)
      maybe_hash = parameters.first
      if maybe_hash.is_a?(Hash)
        super(maybe_hash[:command],
              maybe_hash[:application_type] || ::Naf::ApplicationType.rails,
              maybe_hash[:application_run_group_restriction] || ::Naf::ApplicationRunGroupRestriction.limited_per_all_machines,
              maybe_hash[:application_run_group_name] || :command,
              maybe_hash[:application_run_group_limit] || 1,
              maybe_hash[:priority] || 0,
              maybe_hash[:affinities] || [],
              maybe_hash[:prerequisites] || [],
              maybe_hash[:enqueue_backlogs] || false,
              maybe_hash[:application] || nil,
              maybe_hash[:application_schedule] || nil)
      else
        super(*parameters)
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
naf-2.1.13 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.12 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.11 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.10 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.9 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.8 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.6 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.5 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.4 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.3 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.2 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.1 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.1.0 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.0.4 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.0.3 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.0.2 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.0.1 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-2.0.0 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-1.1.4 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb
naf-1.1.3 app/models/logical/naf/construction_zone/ad_hoc_work_order.rb