ruby - Running Rake::Pipeline.build inside of Rakefile -
i'm trying kick off rake pipeline task inside rakefile. can tell process example here.
however, isn't working. here gist reducing example barebones.
it shows reduced test case works using rake-pipeline's assetfile, when trying include same exact code in rakefile doesn't work.
- why failing?
- what solution make work? (no cheating , running system call part of rakefile.)
thanks help!
works
it looks 1 way handle execute file, so:
project = rake::pipeline::project.new('assetfile') # project.clean # required rake-pipeline 0.7.0 project.invoke
however, annoying have create file every single rake task.
doesn't work
looking @ code rake::pipeline should allow me pass in pipeline, such code works:
pipeline = rake::pipeline.build output "js" puts dir.pwd input "js" match "*.js" # concatenate js files single file filter rake::pipeline::concatfilter, "application.js" end end end project = rake::pipeline::project.new(pipeline) project.invoke
anybody know why won't work? error:
undefined method `manifest' nil:nilclass rake-pipeline-0.8.0/lib/rake-pipeline.rb:408:in `manifest' rake-pipeline-0.8.0/lib/rake-pipeline.rb:456:in `block in record_input_files' rake-pipeline-0.8.0/lib/rake-pipeline.rb:453:in `each' rake-pipeline-0.8.0/lib/rake-pipeline.rb:453:in `record_input_files' rake-pipeline-0.8.0/lib/rake-pipeline.rb:340:in `setup' rake-pipeline-0.8.0/lib/rake-pipeline.rb:326:in `block in invoke' <internal:prelude>:10:in `synchronize' rake-pipeline-0.8.0/lib/rake-pipeline.rb:321:in `invoke' rake-pipeline-0.8.0/lib/rake-pipeline/project.rb:126:in `each' rake-pipeline-0.8.0/lib/rake-pipeline/project.rb:126:in `block in invoke' <internal:prelude>:10:in `synchronize' rake-pipeline-0.8.0/lib/rake-pipeline/project.rb:112:in `invoke' rakefile:23:in `block in <top (required)>'
Comments
Post a Comment