Skip to content

Commit

Permalink
Add rakefile_file_chains for test
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jan 23, 2017
1 parent bc5765f commit b0c268e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/support/rakefile_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,24 @@ def rakefile_chains
DEFAULT
end

def rakefile_file_chains
rakefile <<-RAKEFILE
file "fileA" do |t|
sh "echo contentA >\#{t.name}"
end
file "fileB" => "fileA" do |t|
sh "(cat fileA; echo transformationB) >\#{t.name}"
end
file "fileC" => "fileB" do |t|
sh "(cat fileB; echo transformationC) >\#{t.name}"
end
task default: "fileC"
RAKEFILE
end

def rakefile_comments
rakefile <<-COMMENTS
# comment for t1
Expand Down

0 comments on commit b0c268e

Please sign in to comment.