Sha256: 032be3ac339760dbff8147afecbe84b6454de3ffe9e609f451996d1c816a9c4b

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

module Juici::Controllers
  class BuildQueue < Base

    def list
      builds = $build_queue.builds.sort_by(&:priority)
      yield [:"queue/list", opts(:builds => builds)]
    end

    def opts(_opts={})
      {:active => :queue}.merge(_opts)
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
juici-0.0.1.alpha1 lib/juici/controllers/build_queue.rb
juici-0.0.0.alpha1 lib/juici/controllers/build_queue.rb