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.

499 questions
16
votes
4 answers

Is it possible to skip .rvmrc confirmation?

We are using RVM for managing Ruby installations and environments. Usually we are using this .rvmrc script: #!/bin/bash if [ ! -e '.version' ]; then VERSION=`pwd | sed 's/[a-z/-]//g'` echo $VERSION > .version rvm gemset create…
15
votes
2 answers

How do I get started with Chef?

The chef documentation is pretty bad. And Google isn't helping me. Can anyone point me at a decent article or something that would help me get started? My specific issues are: How do I get a client to read my configuration? chef-solo seems like the…
Brad Wright
  • 261
  • 2
  • 6
12
votes
2 answers

How to setup Ruby and RubyGems on CentOS?

I have a CentOS 5.5 (64-bit server) I'd like to install Ruby 1.8.7 (current patch level) and RubyGems What's the best way to go about this? disclaimer: I'm a CentOS noob
macek
  • 315
  • 2
  • 4
  • 10
11
votes
6 answers

Gitlab: Extremely high memory consumption by ruby "bundle" process

I have a problem with my Gitlab installation running on a small Ubuntu LTS 16.04. I have to point out that I don't have much experience with Linux or Gitlab. My Gitlab installation with a few personal projects (only 4) was running Ok, though pushing…
mode777
  • 211
  • 1
  • 2
  • 4
10
votes
3 answers

How to run Gollum using mod_rails and Apache in a shared hosting environment (e.g. Dreamhost)?

Gollum is GitHub's new wiki engine written in Ruby. Deployed locally it uses a Sinatra instance to provide a web interface. Is it possible to run it in a shared hosting environment such as Dreamhost using Apache and mod_rails (Phusion Passenger)?
Kenners
  • 113
  • 2
  • 6
10
votes
4 answers

Uninstall ruby from source

I installed ruby 1.9 on my fedora 13 machine from source. I want to go back and use the older 1.8.6 (which I'll install with yum), unfortunetly it appears that I can't simply uninstall my current version by "make uninstall" (make: *** No rule to…
vise
  • 235
  • 1
  • 3
  • 9
9
votes
4 answers

How do I setup Apache with FastCGI and Ruby?

I've been reading alot of forum posts, tutorials, etc., about setting up apache under linux with fastcgi. I'm trying to run fcgi for some of my ruby development (not rails), but I figure it should apply to any language. Please note that I already…
sdellysse
  • 203
  • 2
  • 8
8
votes
4 answers

How can I execute Ruby scripts via Apache (not necessarily using Rails)?

I'm trying to get Apache to interpret my Ruby files but I don't understand how to do it. I'm not concerned with Rails right now, only Ruby. What I've found by Googling only confuses me. Any advice?
Jason Swett
  • 1,458
  • 4
  • 23
  • 37
7
votes
5 answers

RVM not picking up /etc/gemrc

in a system wide RVM .... heres my /etc/gemrc --- gem:--no-ri --no-rdoc heres the system gem env GEM PATHS: - /usr/lib/ruby/gems/1.9.1 - /home/${USER}/.gem/ruby/1.9.1 GEM CONFIGURATION: - :update_sources => true -…
jtzero
  • 171
  • 1
  • 7
7
votes
5 answers

Ruby for Systems Administration

I've used Python, Perl and Shell for systems administration. Wondering if anyone uses Ruby for systems administration? Any pluses/negatives? I know that this question is subjective and am interested in experiences. Thanks.
Paul
  • 337
  • 3
  • 11
6
votes
1 answer

Which way is the correct way to pass variables to chef templates?

Looking at this official documentation: https://docs.chef.io/resource_template.html I see examples of passing variables to the Template resource that use either "{", "({" or "(" to scope the variables. I cannot find a place explaining the…
cb2
  • 163
  • 1
  • 1
  • 5
6
votes
1 answer

Why isn't puma using all of its threads?

I'm using puma and nxinx, and as far as I can tell it is only ever using a single thread even when I start it with the default of 16 threads or more. I've set up a fresh rails app, then gone through the set up described…
DrFredEdison
  • 261
  • 4
  • 11
6
votes
5 answers

How to fix "ruby installation is missing psych (for YAML output)." on CentOS?

After rvm installation on CentOS 5.8: [rails@localhost ~]$ rvm -v rvm 1.16.17 [rails@localhost ~]$ which ruby ~/.rvm/rubies/ruby-1.9.3-p286/bin/ruby [rails@localhost ~]$ ruby -v ruby 1.9.3p286 (2012-10-12 revision 37165)…
ohho
  • 975
  • 8
  • 18
  • 34
6
votes
2 answers

Copy a whole directory structure in Chef

I have a directory structure (sample data) that I want to copy from within a Chef recipe. It seems the only way to do this is to explicitly create each individual directory and file: directory "/mnt/data/experiment1/dataset1" do recursive true …
Steve Bennett
  • 5,539
  • 12
  • 45
  • 57
6
votes
2 answers

Where is the gem command in RHEL6?

I just built RHEL 6 and I need to be able to install ruby gems, etc. I have the ruby 1.8.7 packages installed but there is no gem command anywhere? What gives?
NJ01
  • 219
  • 1
  • 4
  • 8
1
2 3
33 34