Managing dependencies using Piston

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite & 1 Group

    Managing dependencies using Piston - Presentation Transcript

    1. Managing dependencies using Piston David Peterson peterson@orbitec.com.au
    2. Plugins Most rails applications make use of one or more plugins. These are typically versioned using subversion.
    3. svn:externals Plugins are conventionally imported ● into a rails application as external repositories $ svn co http://elitists.textdriven.com/svn/plu gins/acts_as_state_machine/trunk/  acts_as_state_machine
    4. Problems with this approach What if the remote repository is down ● when you want to: Do a fresh checkout ● DEPLOY ?! ● What if you want to version your local ● changes to the plugin? What if you want to sync your changes ● with upstream updates?
    5. One answer ... Use Piston for dependency management http://piston.rubyforge.org/
    6. Piston 'Easy vendor branch management' ● Moves from using svn:externals to ● using conventional (svn) directories Piston manages synchronisation with ● upstream repository Best of both worlds ●
    7. Getting started ... $ (sudo) gem install piston ­y $ cd myapp/vendor/plugins $ piston convert $ svn commit $ piston import http://...
    8. Features Hack local plugin with abandon :) ● $ piston import http://... Lock deps to a specific version ● $ piston lock vendor/rails Merge updates at any time (if !locked) ● $ piston update
    9. Example $ cd myapp/vendor/plugins $ piston st             attachment_fu  (http://svn.techno­ weenie.net/projects/plugins/attachment _fu) M           acts_as_state_machine  (http://elitists.textdriven.com/svn/pl ugins/acts_as_state_machine/trunk) ...

    + dhpetersondhpeterson, 3 years ago

    custom

    1568 views, 1 favs, 0 embeds more stats

    A short talk on using Piston to manage rails plugin more

    More info about this document

    CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

    Go to text version

    • Total Views 1568
      • 1568 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 36
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events