Deploying Ruby on a Windows Network

Hello,

I would like to deploy the One-click version (== ruby-mswin32 I
presume) of Ruby to several workstations.
The versions and installed packaged on the workstations should be
synched.

Is this a matter of synching the files, setting the path to Ruby, and
setting RUBYOPT to rubygems?
Anything else that I'm missing?
Of course, it will be necessary to deploy any toolkits that will be
used by Ruby.

Is there a project that already does this? I couldn't find any.

Thank you,
Brian Takita

I believe the One-Click Installer sets RUBYOPT and PATH for you. If you need
to install gems, just write a script to call "gem install --remote blah" for
each gem you need.

Bill

···

On 8/3/05, Brian Takita <brian.takita@gmail.com> wrote:

Hello,

I would like to deploy the One-click version (== ruby-mswin32 I
presume) of Ruby to several workstations.
The versions and installed packaged on the workstations should be
synched.

Is this a matter of synching the files, setting the path to Ruby, and
setting RUBYOPT to rubygems?
Anything else that I'm missing?
Of course, it will be necessary to deploy any toolkits that will be
used by Ruby.

Is there a project that already does this? I couldn't find any.

Thank you,
Brian Takita

--
Bill Atkins

Bill, thank you for the reply.

I believe the One-Click Installer sets RUBYOPT and PATH for you.

Two things about this consideration:
1. I need to keep the packages synched. Not all packages are in Gem
format. I can probably use a SCM or sync tool to keep the files
synched. This would apply to the Gems too.
2. I can probably set the environment variables using wshell via
Win32ole.
The One-Click Installer may be easier set set the environment variables
option if it supports a touchless installation.

just write a script to call "gem install --remote blah" for each gem you need.

Doesn't Gems prompt to install dependencies? If there is a way to
default to "Yes", then it would be easier.

Also, some registry keys are set to associate *.rb and *.rbw with the installed ruby, plus the start menu shortcuts. None of that is critical if you don't care.

Curt

Bill Atkins wrote:

···

I believe the One-Click Installer sets RUBYOPT and PATH for you. If you need to install gems, just write a script to call "gem install --remote blah" for each gem you need.

Bill

On 8/3/05, Brian Takita <brian.takita@gmail.com> wrote:

Hello,

I would like to deploy the One-click version (== ruby-mswin32 I
presume) of Ruby to several workstations.
The versions and installed packaged on the workstations should be
synched.

Is this a matter of synching the files, setting the path to Ruby, and
setting RUBYOPT to rubygems?
Anything else that I'm missing?
Of course, it will be necessary to deploy any toolkits that will be
used by Ruby.

Is there a project that already does this? I couldn't find any.

Thank you,
Brian Takita

Brian Takita wrote:

Bill, thank you for the reply.

I believe the One-Click Installer sets RUBYOPT and PATH for you.

Two things about this consideration:
1. I need to keep the packages synched. Not all packages are in Gem
format. I can probably use a SCM or sync tool to keep the files
synched. This would apply to the Gems too.
2. I can probably set the environment variables using wshell via
Win32ole.
The One-Click Installer may be easier set set the environment variables
option if it supports a touchless installation.

You can do this call starting the installer with these options:

    /S /D=<install dir>

just write a script to call "gem install --remote blah" for each gem you need.

Doesn't Gems prompt to install dependencies? If there is a way to
default to "Yes", then it would be easier.

I think there is a way to do this. I cc'd Chad Fowler as he should know the answer.

Curt

Thanks, Curt for drawing my attention. You can pass a flag to gem install:

-y, --include-dependencies Unconditionally install the required
dependent gems

···

On 8/3/05, Curt Hibbs <curt@hibbs.com> wrote:

Brian Takita wrote:
> Bill, thank you for the reply.
>
>
>>I believe the One-Click Installer sets RUBYOPT and PATH for you.
>
>
> Two things about this consideration:
> 1. I need to keep the packages synched. Not all packages are in Gem
> format. I can probably use a SCM or sync tool to keep the files
> synched. This would apply to the Gems too.
> 2. I can probably set the environment variables using wshell via
> Win32ole.
> The One-Click Installer may be easier set set the environment variables
> option if it supports a touchless installation.

You can do this call starting the installer with these options:

    /S /D=<install dir>

>>just write a script to call "gem install --remote blah" for each gem you need.
>
>
> Doesn't Gems prompt to install dependencies? If there is a way to
> default to "Yes", then it would be easier.

I think there is a way to do this. I cc'd Chad Fowler as he should know
the answer.

--
Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 700,000 gems served!)