Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8175675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:51:41+00:00 2026-06-06T22:51:41+00:00

I cannot wrap my brain around the following thing … and I hope there’s

  • 0

I cannot wrap my brain around the following thing … and I hope there’s an easy “rubyist” way to solve this.

I have a couple of linux servers that are all administrated through a bunch of ruby scripts with own config. All those scripts rely on a utils gem that is easily installed on all hosts with “gem install”.
The apps itself however are host dependend.

The ruby script that for example handles nightly database backups makes only sense on the database host. And the script that parses application server log files has nothing to do on the database host, aso.

With the utils gem it is easy. I just put it to our gem server and every host just fetches it. But the apps itself and their configs are copied over manually at the moment. But this is kind of stupid.

I’d really like to just package the app + config into its own ruby gem. This part is easy. But I then want the app-script to be installed to /usr/local/bin and the config files to go to /usr/local/etc. But I cannot figure out how I could tell a gemspec how to handle install paths per file, including owner change and possible forced manuall diff/automatic merge in case the config has changed.

I secretly try to get a chef-system started, which would solve all of the problems. But there are too many things going on here currently that prevent the setup of such an infrastructure … I cannot even use sprinkle … sadly. So it’s all pretty nasty at the moment.

So is there a way of telling my gemspec how to handle certain files or at least a way I can tell the gemspec to run a certain file on install so I can code my way around those problems?

Or maybe you’ve got similar situations and have a nice solution that works for you and you don’t mind sharing your wisdom with me?

Thx in advance,
Stefan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:51:43+00:00Added an answer on June 6, 2026 at 10:51 pm

    I would pack that app as a package. That is, make a .deb file on Debian/Ubuntu, .rpm on RedHat and so on.

    This solves issues with placing executables and configs to proper folders.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I simply cannot wrap my head around how to solve this problem and after
I'm a student and cannot wrap my head around why this isn't working. function
I cannot wrap my head around the following, say I have a List, each
I cannot wrap my head around this...I have an array that looks like: Array
First, apologies,this should be simple but I've had too much coffee and cannot wrap
I just cannot work this out. My god it's making my brain hurt, so
I have a problem that I cannot wrap my head around. I'm using Apache
I have a database issue that i currently cannot wrap my head around with
Trying to wrap my brain around animations here. Here is my basic situation: _________
Running into a JavaScript date weirdness that I cannot wrap my head around. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.