Class: HelixRuntime::ParentBuildTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/helix_runtime/parent_build_task.rb

Overview

FIXME: I don’t like this name

Instance Method Summary collapse

Constructor Details

#initializeParentBuildTask

Returns a new instance of ParentBuildTask.



8
9
10
# File 'lib/helix_runtime/parent_build_task.rb', line 8

def initialize
  define
end

Instance Method Details

#defineObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/helix_runtime/parent_build_task.rb', line 12

def define
  desc "Build Helix projects in crates"
  task :build do
    project.projects.each do |p|
      puts "Building #{p.name}"
      p.build
    end
  end

  desc "Clobber Helix builds in crates"
  task :clobber do
    project.projects.each do |p|
      puts "Clobbering #{p.name}"
      p.clobber
    end
  end
end