Class: Shanty::BasicTasks
Overview
Public: A set of basic tasks that can be applied to all projects and that ship with the core of Shanty.
Instance Method Summary
collapse
Methods inherited from TaskSet
desc, inherited, method_added, option, param
Instance Method Details
#build(options, task_env) ⇒ Object
28
29
30
31
32
33
|
# 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) ⇒ Object
10
11
12
|
# File 'lib/shanty/task_sets/basic.rb', line 10
def init(_options, _task_env)
end
|
#projects(options, task_env) ⇒ Object
17
18
19
20
21
22
|
# 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) ⇒ Object
39
40
41
42
43
44
|
# 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
|