Uploaded a "bash_profile.txt" file

I have created with some nice shortcuts for rails and hobo
development.
I'm sure you can improve and enhance it. I have included some nice
scripts for making it much easier to create hobo themes (as of
tutorial 19 in the Hobo book):

Copy and paste the content of this file into the end of
~/.bash_profile
---
# Hobo THEMES
function hobo_theme {
        name=$1
        echo "Generating hobo theme plugin '$name' in vendor/plugins"
        echo "Add plugin in hobo app using: add_hobo_theme $name"
        mkdir vendor/plugins/$name
        cd vendor/plugins/$name
        mkdir taglibs
        mkdir -p public/$name
        mkdir public/$name/stylesheets
        mkdir public/$name/images
        cd ../../..
        cp app/views/taglibs/application.dryml vendor/plugins/$name/taglibs/
$name.dryml
        cp public/stylesheets/application.css vendor/plugins/$name/public/
$name/stylesheets/$name.css
        rm public/images/rails.png
        cp -R public/images/* vendor/plugins/$name/public/$name/images
}

function add_hobo_theme {
        name=$1
        echo "Copying assets for theme plugin '$name' to public"
        cp -R vendor/plugins/$name/public/* public
        echo "Add <include src='$name' plugin='$name'/> at the end of app/
views/taglibs/application.dryml"
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to