Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Copy current state of gem on server to my local machine (http://www.velocityreviews.com/forums/t860339-copy-current-state-of-gem-on-server-to-my-local-machine.html)

Max Williams 11-07-2009 08:20 PM

Copy current state of gem on server to my local machine
 
I have a gem (thoth-0.3.0) on my server which has had a few changes made
to it over time (by me). I'm happy with how it works and have no desire
to update it. I now need to install a copy of that gem on my local
machine so i can develop knowing that what i do will work the same on
the server. I can't just install it as normal as it's out of sync with
the 'official' version.

Can i just zip up the server's thoth-0.3.0 folder, scp it over and then
untar it into my gems folder? Or does it need to be properly installed?
if so, what's the best process for this?

thanks
max
--
Posted via http://www.ruby-forum.com/.


Marnen Laibow-Koser 11-07-2009 08:51 PM

Re: Copy current state of gem on server to my local machine
 
Max Williams wrote:
> I have a gem (thoth-0.3.0) on my server which has had a few changes made
> to it over time (by me). I'm happy with how it works and have no desire
> to update it. I now need to install a copy of that gem on my local
> machine so i can develop knowing that what i do will work the same on
> the server. I can't just install it as normal as it's out of sync with
> the 'official' version.
>
> Can i just zip up the server's thoth-0.3.0 folder, scp it over and then
> untar it into my gems folder? Or does it need to be properly installed?
> if so, what's the best process for this?


Run 'gem server' on your server, and then specify it as the source from
which to install the gem on the local box. However, If you're using a
modified gem, you should rename it and/or package it within your source
repo (for example, in Rails, put it in vendor/gems). Otherwise, you
defeat the point of having a package system like rubygems.
>
> thanks
> max


Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

--
Posted via http://www.ruby-forum.com/.


Max Williams 11-07-2009 10:41 PM

Re: Copy current state of gem on server to my local machine
 
ah, that's great Marnen. thanks!
--
Posted via http://www.ruby-forum.com/.



All times are GMT. The time now is 07:14 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57