Module: Shipit::TasksHelper

Defined in:
app/helpers/shipit/tasks_helper.rb

Instance Method Summary collapse

Instance Method Details

#task_description(task) ⇒ Object



5
6
7
8
9
10
11
# File 'app/helpers/shipit/tasks_helper.rb', line 5

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