Code Monkey home page Code Monkey logo

rake-subproject's People

Contributors

michaeljbishop avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

jwilger

rake-subproject's Issues

Make the MultiTask thread pool work between super, and sub-projects

Rake allows a -j parameter which specifies the maximum number of jobs. This number should work not just for the super-project, but the sub-projects as well. To make matters more difficult, if the super-project can fill all the job-spots, then the sub-project shouldn't get any.

There should be communication between the super and sub-project instances as to how many tasks are being executed and if any more can without exceeding that limit as established in the super-project execution.

Allow configuration of sub project environment

Add some more parameters to the subproject call that would allow more configuration of the subproject. In particular, there should be some way of setting up the environment variables.

Issues to address:

  1. Should the super-project pass along all of the Rake ENV that it processed at the command-line?
  2. What should the default be?

In the super-project, allow adding prerequisites to tasks defined in the sub-project

As long as the super-project can reference tasks created in the sub-project, allow the sub-project tasks to have prerequisites attached to them in the super-project Rakefile.

So, to be clear, here are some tasks in in the subproject, located at foo.

task :hello do
  p "HELLO"
end
task :world => :hello do
  p "WORLD"
end
task :cruel do
  p "CRUEL"
end

And here is the super-project:

subproject 'foo'

task 'foo:world' => ['foo:cruel', 'period'] do
  p "AGAIN"
end
task 'period'  do
  p "."
end

Now, when executing the super project:

$ rake foo:world
HELLO
CRUEL
.
WORLD
AGAIN

The sub-project prerequisites are all executed before the super-task prerequisites.

Allow adding of blocks to a subproject task in the super project

As long as the super-project can reference tasks created in the sub-project, allow those tasks to have execution blocks attached to them in the super-project Rakefile.

So, to be clear, here's a task in in the subproject, located at foo.

task :hello do
  p "HELLO"
end

And here is the super-project:

subproject 'foo'

task 'foo:hello' do
  p "WORLD"
end

Now, when executing the super project:

$ rake foo:hello
HELLO
WORLD

The sub-project blocks are all executed before the super-project blocks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.