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

  • Home
  • SEARCH
  • 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 6064267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:15:42+00:00 2026-05-23T09:15:42+00:00

I built a rails deploy dashboard that kicks off a ruby script on a

  • 0

I built a rails deploy dashboard that kicks off a ruby script on a remote machine to update a deployed application.

The command to run the script looks like this:

ssh test-host-02 
  "wget -q -O - http://server/deploy.rb | sudo ruby" 
  > /tmp/update-test-host-02.log 2>&1

Now I need to pass arguments into the deploy.rb script. Such as which build to deploy.

What is the best way to pass arguments to deploy.rb?

  • 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-05-23T09:15:43+00:00Added an answer on May 23, 2026 at 9:15 am

    Ruby follows the standard convention of allowing you to specify stdin input with -, which allows you to pass arguments after.

    $ ruby -- - HELLO
    puts ARGV.first # outputs HELLO
    

    The double-dash isn’t necessary in most cases.

    Another option is to use turn the output of wget into a file descriptor using bash’s <() operator:

    $ ruby <(wget -O - http://example.com/deploy.rb) option1 option2 ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a very simple blog application using Ruby on Rails. New to
we built a facebook application with ruby/rails and facebooker (iframe application) and are currently
I have a rails 3 application that I'd like to deploy. My deployment environment
I've built a Rails 3 application on my dev machine, and am ready to
Our team have built a web application using Ruby on Rails. It currently doesn't
I have developed a Ruby on Rails application and successfully deployed on Weblogic using
I have a site built in Ruby On Rails which has many ads in
I'm looking for some Rails/Facebook functionality that has already been built - as a
I've been impressed by the screencasts for Rails that demonstrate the built-in web server,
i am testing an application built with rails and from time to time get

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.