J
Jim Freeze
Hi
I have a directory of projects and in the directory above that, I
would like to put a Rakefile that manages tasks on those projects.=20
The problem is that I cannot obtain the directory from with rake is
run.
What I want is the following:
projects/
Rakefile
commandline/
pkg/
commandline.gem
quiz42/
project_xyz.../
cd commandline
rake gem
Inside the gem file is a task:
task :gem do
sh "gem build pkg/*gem"
end
The problem is that the pwd is 'projects/=10', not 'projects/commandline'.
Also, I cannot tell that there is a way to know that the
rake command was run from 'projects/commandline'.
If a way exists, I would be happy to hear about it. If not, can we
add a @launch_dir (or @run_dir) to #load_rakefile?
Thanks
--=20
Jim Freeze
I have a directory of projects and in the directory above that, I
would like to put a Rakefile that manages tasks on those projects.=20
The problem is that I cannot obtain the directory from with rake is
run.
What I want is the following:
projects/
Rakefile
commandline/
pkg/
commandline.gem
quiz42/
project_xyz.../
cd commandline
rake gem
Inside the gem file is a task:
task :gem do
sh "gem build pkg/*gem"
end
The problem is that the pwd is 'projects/=10', not 'projects/commandline'.
Also, I cannot tell that there is a way to know that the
rake command was run from 'projects/commandline'.
If a way exists, I would be happy to hear about it. If not, can we
add a @launch_dir (or @run_dir) to #load_rakefile?
Thanks
--=20
Jim Freeze