class Shanty::BasicTasks

Public: A set of basic tasks that can be applied to all projects and that ship with the core of Shanty.

Public Instance Methods

build(options, task_env) click to toggle source
# File lib/shanty/task_sets/basic.rb, line 28
def build(options, task_env)
  task_env.graph.each do |project|
    next if options.changed? && !project.changed?
    fail I18n.t('tasks.build.failed', project: project) unless project.publish(:build)
  end
end
init(_options, _task_env) click to toggle source
# File lib/shanty/task_sets/basic.rb, line 10
def init(_options, _task_env)
  # FIXME
end
projects(options, task_env) click to toggle source
# File lib/shanty/task_sets/basic.rb, line 17
def projects(options, task_env)
  task_env.graph.each do |project|
    next if options.changed? && !project.changed?
    puts project
  end
end
test(options, task_env) click to toggle source
# File lib/shanty/task_sets/basic.rb, line 39
def test(options, task_env)
  task_env.graph.each do |project|
    next if options.changed? && !project.changed?
    fail I18n.t('tasks.test.failed', project: project) unless project.publish(:test)
  end
end