Sha256: 456450ef4e39b9bc131a45b3e5b69867f9ef85ec9b033a29ab840dbb62286947

Contents?: true

Size: 274 Bytes

Versions: 44

Compression:

Stored size: 274 Bytes

Contents

module Shipit
  module TasksHelper
    def task_description(task)
      if task.class == Task
        task.definition.action
      else
        t("#{task.class.name.demodulize.underscore.pluralize}.description", sha: task.until_commit.short_sha)
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
shipit-engine-0.31.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.30.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.29.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.28.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.28.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.27.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.27.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.26.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.25.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.25.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.24.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.23.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.23.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.22.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.21.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.20.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.20.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.19.0 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.18.1 app/helpers/shipit/tasks_helper.rb
shipit-engine-0.18.0 app/helpers/shipit/tasks_helper.rb