[Nitro] nitro part generator
Fabian Buch
fabian at fabian-buch.de
Tue Sep 12 17:03:11 EDT 2006
Am 12.09.2006 um 17:01 schrieb George Moschovitis:
> should copy files to
>
> myapp/lib/admin
>
> instead of
>
> myapp/admin
>
> If you agree, could you change the implementation a little bit?
Of course I can change it if you prefer a lib/ directory. But "gen
part admin" is not creating a myapp/admin nor myapp/lib/admin at the
moment.
It's creating the following:
./part/admin/
./public/part/admin/ (if needed)
Example:
~$ gen app testapp
Copying proto dir to '/Users/ogg/testapp'
Done
~$ cd testapp
~/testapp$ gen part admin
Copying admin dir to '/Users/ogg/testapp/part/admin'
part doesn't have public/ directory, skipping
Done
~/testapp$ gen part blog
Copying blog dir to '/Users/ogg/testapp/part/blog'
Copying blog public dir to public/part/blog
Done
~/testapp$ ls -l part/
total 16
drwxr-xr-x 6 ogg ogg 204 Sep 12 22:50 admin
-rw-r--r-- 1 ogg ogg 300 Sep 12 22:50 admin.rb
drwxr-xr-x 13 ogg ogg 442 Sep 12 22:51 blog
-rw-r--r-- 1 ogg ogg 1914 Sep 12 22:51 blog.rb
~/testapp$ ls -l public/part/
total 0
drwxr-xr-x 4 ogg ogg 136 Sep 12 22:51 blog
So it's in a "namespace" already: "part/" instead of your proposed
"lib/". Or did I get it wrong and you meant something like "lib/
part/" as namespace? Or lib/ instead of part/?
Ideas welcome and I'll implement them if I get them right.
Fabian
--
Nitro Q&A: http://oxyliquit.de/
Blog: http://blog.fabian-buch.de
More information about the Nitro-general
mailing list