Questions tagged [ruby]

Ruby is a general-purpose object-oriented open-source scripting language. It sees a high degree of use in the configuration management space, and is popular for web development due to the high adoption of Ruby On Rails

Ruby is an object oriented programming language that has programmer productivity as one of its design goals. Most people are familiar with it these days as part of Ruby On Rails, a web application framework.

498 questions
1
vote
2 answers

Syntax error when starting Rails server, RVM could be the issue?

I am getting the following error when trying to start my Rails application in production for the first time: /var/www/railsapp/config/initializers/session_store.rb:3: syntax error, unexpected ':', expecting $end ...sion_store :cookie_store, key:…
dannymcc
  • 2,717
  • 10
  • 48
  • 72
1
vote
1 answer

Ruby processes showing high cpu activity

I have three virtual linux servers running on Slicehost. Two of them are running 2.6.24-23-xen one is running 2.6.18-xen. All three servers are running almost identical software but the behaviour of top is different between the 2.6.24 and 2.6.18…
Chris McCauley
  • 552
  • 1
  • 5
  • 15
1
vote
1 answer

How to determine if ftp/smtp is up and running using a script?

Similiar to how these uptime monitoring servieces perform checks if your smtp or ftp server is running, how could I do this myself using python/ruby?
codecompleting
  • 513
  • 1
  • 4
  • 14
1
vote
2 answers

How to generate a config file from node attribute (array) with Chef?

One of chef node's attributes is an array of hashes: "array_of_hashes": [ { "hash_key_1": "value1", "hash_key2": "value2", }, { "hash_key_2": "value4", "hash_key_1": "value3", } ] I need…
HUB
  • 6,630
  • 3
  • 23
  • 22
1
vote
2 answers

ruby or rvm ruby in Production web server

Currently our production server runs in system ruby. Passenger handles our rails apps. Should I move to handling my entire ruby stuff using rvm? What advantage can rvm give me in a production environment? Please advise. I'm a beginner in handling…
Anand
  • 261
  • 6
  • 17
1
vote
1 answer

How do I require a resource in a Puppet definition based on an array parameter?

I have a define that looks like this: define user::sys_user($fullname, $uid, $groups, $shell='/bin/bash', $authkey, $authkey_type=rsa) { $username = "sys_${name}" group { $username: gid => $uid, } …
Belmin Fernandez
  • 10,799
  • 27
  • 84
  • 148
1
vote
3 answers

I upgraded to leopard and everything works fine except for ruby and rails

I just upgraded my Mac OS X to 10.5. Everything works great after a little Apache love, except for ruby and rails. This is what I am seeing Macintosh:~ TAmoyal$ ruby test.rb -bash: /usr/local/bin/ruby: cannot execute binary file Macintosh:bin…
Tony
  • 4,213
  • 11
  • 35
  • 29
1
vote
1 answer

Cannot require 'rmagick' despite normal installation on Ubuntu (LoadError: no such file to load -- rmagick)

I have installed all the dev files (sudo apt-get install libmagick++-dev libmagickcore-dev libmagickwand-dev) as well as the gem itself (gem install rmagick), and everything installed just fine, no compilation or installation errors in either…
Mark
  • 135
  • 1
  • 6
1
vote
1 answer

Installed ruby from source on debian, apt-get no longer works due to failed dependencies, how do I fix it?

I installed ruby from source, and everything ruby related seems to work just fine. I can't install anything that depends on ruby using apt because I don't want 2 versions of ruby installed. After I install mcollective from dpkg using…
matt
  • 1,152
  • 1
  • 8
  • 18
1
vote
1 answer

rvm fails to install any ruby

RVM gives me an error during installation of any version of ruby. Let's take for example ree-1.8.7-head rasfast@rasfast-home:~$ rvm install ree-1.8.7-head Installing Ruby from source to: /home/rasfast/.rvm/rubies/ree-1.8.7-head, this may take a…
1
vote
2 answers

error deploying app with Vlad, running a sudo command, to Ubuntu server

I'm a n00b when it comes to ssh, sudo and other unix things... so bear with me, here. i've got a rails website set up and deploying with vlad via ssh already. this works fine. now i need to have my deploy process run a sudo command to restart monit.…
1
vote
1 answer

Trouble installing Heroku taps gem using RVM

I tried to install the taps gem on my rvm, but got the following result: larson:~ larson$ rvm gem install taps Successfully installed taps-0.3.23 1 gem installed Installing ri documentation for taps-0.3.23... Installing RDoc documentation for…
1
vote
2 answers

Install debian package on ubuntu?

I want to install this on Ubuntu 10 or 11, any easy way to do that? http://packages.debian.org/sid/ruby1.9.1-full (related: I'm amazed that I can't find a third-party ubuntu package for ruby 1.9.2 -- is there one out there?)
John Bachir
  • 2,364
  • 7
  • 29
  • 37
1
vote
1 answer

Ruby 1.8.7 on Plesk 9.5.4

I'm trying to get Ruby 1.8.7 installed on Plesk 9.5.4. I'm currently running 1.8.6 but gem requires a newer version of Ruby to be installed: /opt/ruby/bin/gem update --system Updating RubyGems Updating rubygems-update ERROR: While executing gem ...…
Prisoner
  • 316
  • 1
  • 17
1
vote
4 answers

How to install Ruby on a Linode server?

As the title says, what's the best way to install Ruby and then Ruby on Rails on a Linode server?
Vasseurth
  • 103
  • 6