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
2
votes
2 answers

How can I edit puppet .pp files with Eclipse & DLTK

The puppet editor tips page seems to suggest that using eclipse & dltk (presumably the ruby tools) will assist with editing .pp files. http://projects.puppetlabs.com/projects/1/wiki/Editor_Tips I can't see any difference or get syntax highlighting…
asparagino
  • 183
  • 2
  • 7
2
votes
1 answer

Using Monit to monitor Resque

I'm trying to use resque as a job runner for Rails. I've tried this config, and many other ways of demonizing the rescue task (because running rake resque:work leaves the terminal tied to that command). Unfortunately, their example configuration…
Alex
  • 29
  • 2
2
votes
2 answers

Puppet- ERB template- Question about defined classes

Puppet template files are erb rails files. I want the line: Include modsecurity.d/*.conf To be included in the final file if the class mod_security is included. From the puppet docs: http://docs.puppetlabs.com/guides/templating.html - And this…
Joshua Enfield
  • 3,454
  • 8
  • 42
  • 59
2
votes
1 answer

What is the most straightforward way to pass a commandline flag into RSpec?

I need to run RSpec examples in multiple environments. I want to pass a flag into RSpec that a case statement can key off so as to set the proper values. This is such a natural thing to want to do that I must be overlooking the obvious. Thank you…
Mike Jr
  • 187
  • 1
  • 7
2
votes
2 answers

Install Ruby 1.8.7 on Fedora 11/12

Is there a simple way to install Ruby 1.8.7 on Fedora 11 or 12 without side-stepping the yum/RPM package management system too severely? Building from source is always an option, but it tends to deploy things in irregular places and proves to be…
tadman
  • 123
  • 1
  • 9
2
votes
2 answers

Redmine subversion won't ignore certificate error even if told

I have set up a copy of Redmine through the Bitnami Redmine Stack and am having trouble accessing a remote SVN repository through https. The trouble seems to be related to the fact that I don't have a signed certificate, and the certificate provided…
Pekka
  • 2,178
  • 3
  • 20
  • 32
2
votes
1 answer

Serving Ruby pages without Rails?

How would I go about displaying Ruby-generated dynamic pages without relying on a framework, such as Rails? My intention is to serve Ruby .erb pages just as I would with .php files. My server uses EngineX, which seems to play well together with…
Miko
  • 1,759
  • 4
  • 22
  • 28
2
votes
2 answers

Parse/Edit Apache conf files with Ruby?

I need to write some scripts to make changes to Apache conf files, namely to add/update VirtualHosts. I plan on doing this in Ruby. before I write my own, are there any scripts/rubygems which allow Ruby to parse/modify Apache conf files,…
Josh
  • 9,190
  • 28
  • 80
  • 128
2
votes
1 answer

OpenSSL support for Ruby: "Cipher is not a module (TypeError)"

The Problem Our systems admin needed to upgrade the packages on our CentOS 5.4 dev server to match the packages on our production server. The upgrade affected ruby and/or openssl. We run a Ruby on Rails issue tracking system called Redmine that is…
macek
  • 315
  • 2
  • 4
  • 10
1
vote
0 answers

Puppet 4.10 Regex

I'm trying to add a 'type' layer to our hiera backend so webservers can get common configuration, databases get some common configuration, etc. Our hostname scheme is [env][number].domain.tld where [env] and [number] are optional. [env] can be one…
user550919
1
vote
0 answers

How to upgrade Ruby Bundle version in AWS Opsworks

I have a project running on AWS Opsworks, which has current bundler version of 1.5.3 on Ruby 2.2.2. i want to upgrade the bundle version to 1.17.3 but when i try to do it i am getting this…
1
vote
3 answers

Ruby on Rails on Windows - IIS 7 or IIS 6?

I have seen a few places ( one example ) that there are newer speed improvements in IIS 7 on Windows 2008. While I know we would see possibly more power running ruby on rails under a Linux machine, the requirements depend on me using Windows. I was…
jmlumpkin
  • 197
  • 1
  • 2
  • 10
1
vote
2 answers

Ruby app onetimesecret failing to start from systemd unit

I'm trying to install ruby app onetimesecret on CentOS 7.4.1708 (Core) by this manual: https://github.com/onetimesecret/onetimesecret. Ruby is installed with rvm. Everything is fine while running this command from…
1
vote
2 answers

Forum Solution in Ruby or Python

I need to find a suitable forum in Ruby or Python for my company's web site. I've been given the following general criteria: Data Migration: How do they store the data? Preferably in database not flat files. User Management: Need to be able to do…
Rob
  • 203
  • 2
  • 9
1
vote
1 answer

Puma with systemd and socket activation - Errno::EADDRINUSE

I have a Rails 5 app, running on puma 3.12.1, MRI 2.6.2, and Ubuntu 18.04. It used to run with pumactl and a custom control script but I want to configure it properly with systemd, using socket activation to have zero-downtime deployment. The…
vbalazs
  • 119
  • 4