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

Redirect output from cron in real time, not after program has finished?

I have a ruby script that writes to STDOUT and sometimes STDERR. I am running this script every 5 minutes via a crontab: */5 * * * * /root/myscript.rb >> /var/log/myscript.log 2>&1 What I've noticed is that the log file will not be written to in…
Brian
  • 240
  • 3
  • 16
1
vote
2 answers

Activesupport gem complains that it needs ruby 1.9.3 while it is already installed

I have problem installing paperclip gem in Ubuntu 12.04.2 LTS. Activesupport complains that it needs ruby 1.9.3 but I have it already installed. root@Ubuntu-1204-precise-32-minimal /home/.../releases/current # gem install paperclip -v…
Wojtek B.
  • 161
  • 1
  • 7
1
vote
2 answers

Bringing up EC2 instances with vagrant-aws errors

I'm trying to automate acceptance testing by using vagrant to bring up machines with amazon's EC2 service, so I added the dummy box and copied the Vagrantfile off Github, but when I try to run vagrant up --provider=aws I get the output below: I'm…
1
vote
1 answer

require a gem in a ruby script fails at boot time

I am booting using a machine using chef. I need it to install a init.d script which it does and when the script is invoked at the end of chef run the script fails on the require 'daemons' line (shown below). I have a print before and after the…
av501
  • 113
  • 5
1
vote
1 answer

Xen API Ruby Bindings?

Does anyone know if there is a full implementation of the Xen API in ruby floating around out there somewhere? I found this: http://github.com/rubiojr/pangea/tree/master but it is read only and is not fully developed.
bwizzy
  • 1,295
  • 4
  • 14
  • 17
1
vote
1 answer

Postfix piping to a ruby script. Is a new ruby process created for each email?

I'm writing a ruby script to process incoming email for a specific email address using a transport. Postfix transport table me@example.com ruby-script Postfix master file ruby-script unix - n n - - pipe flags= user=zimbra…
joshu
  • 791
  • 3
  • 12
  • 28
1
vote
1 answer

VPS setup for hosting more than one app (via VMs?)

First of all, I’m not an admin, so excuse me if my questions are kinda obvious/lame – I’m just a ruby programmer, which would like to host few apps on his server;) Lets say, that I’ve got 3 applications, which I want to host on my VPS. I’d like to…
1
vote
0 answers

Mongrel failing to start after an OS update

So there's this installation on a virtual server, administered by Plesk, running CentOS. The OS has been automatically updated recently - this broke a custom ruby installation. I haven't set up the original thing and am not familiar with ruby,…
Lars
  • 113
  • 4
1
vote
1 answer

Chef rbenv cookbook recipe user not found

I have a problem with Chef rbenv cookbook. Once I start to bootstrap a server it gives me a error: could not find user recipe for cookbook rbenv But the recipe is in the recipes folder. I can not get it to work even if I define the recipe in the…
cr0c
  • 958
  • 4
  • 16
  • 35
1
vote
1 answer

Puppet: build DNS file from node config (or: how do I iterate over node variables globally)

I also use puppet for my nodes. I am also running a (BIND) dns server. Would it be possible to use the $aliases variable I have for each node in a template for the DNS module? My nodes look like this: $ cat nodes/kayak.local.pp node 'kayak.local' { …
Karel
  • 639
  • 9
  • 16
1
vote
1 answer

Why can't I connect to my PostgreSQL database?

I'm trying to install tentd-admin. The install fails during this step: $ DATABASE_URL=postgres://localhost/tent_server bundle exec rake db:migrate I also tried this: $ DATABASE_URL=postgres://tent:tent@localhost/tent_server bundle exec rake…
brakertech
  • 255
  • 6
  • 11
1
vote
0 answers

Ubuntu, ruby 2, rails 4

I'm trying to setup a server, which has Ubuntu 10.04 LTS, Ruby 2.0.0-p0 and Rails 4 beta1. I can get everything installed but rails 4 has a slight error and I'd like to get someones opinion. When I do 'gem install rails --version 4.0.0.beta1 --no-ri…
Peter
  • 131
  • 6
1
vote
1 answer

configuring Munin for Nginx 1.2.4 on ubuntu 10.04 ubuntu ec2 instances

I am running my ruby on rails app ubuntu 10.04 ec2 instance and I am using nginx 1.2.4. I am trying to configure munin to get stats fron nginx, I have recompiled nginx and its working fine but I am unable to run the munin. If I hit…
Jeevan Dongre
  • 741
  • 2
  • 17
  • 33
1
vote
1 answer

Bundler (or Ruby) mangling require paths

About 50% of the time, when I run bundle (or bundle exec foo) I get an error like the following: > bundle /usr/local/Cellar/ruby/1.9.3-p374/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': No such file or directory -…
Conor McDermottroe
  • 948
  • 1
  • 7
  • 17
1
vote
3 answers

Ruby testing on stable debian server

I've a dedicated debian 5.0 server, which runs the "stable" tree. Now I want to install [testing] ruby 1.8.7 - but my system isnt configured for installing testing packages via apt-get. How can I do that? I only want ruby to be testing - all other…