Sha256: 44b49e917bfc97ad5a50bd6da2c2f4e81f2cbba27a6f9378f990ccf4e13d36a3

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

module ForemanPatch
  module WindowPatchingHelper

    def rounds(window)
      window.rounds.map do |round|
        {
          name: round.name,
          link: round_path(round),
          priority: round.priority,
          hostsCount: round.invocations.count,
          hostsLink: main_app.hosts_path(search: "patch_round_id = #{round.id}"),
          status: round.status,
          actions: []
        }
      end
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_patch-1.2.0.alpha1 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.6.alpha5 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.6.alpha4 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.5 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.4 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.3 app/helpers/foreman_patch/window_patching_helper.rb
foreman_patch-1.1.1 app/helpers/foreman_patch/window_patching_helper.rb