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
0 answers

/home/webapp: No such file or directory elastic beanstalk

When I deploy my ruby app on aws using elastic beanstalk. Following error occur. pass log App 20278 stdout: intializing git App 20278 stderr: error: could not lock config file /home/webapp/.gitconfig: No such file or directory App 20278 stderr: sh:…
1
vote
1 answer

A systemd service won't run for an app

I want to create systemd for "RAILS_ENV=staging bundle exec rake jobs:work" I have this: $ sudo cat /etc/systemd/system/my_bg_jobs.service [Unit] Description=bg…
Jorimi
  • 11
  • 3
1
vote
1 answer

Pipe filenames onto Rubocop

I'm trying to pipe filnames into Rubocop as such: $ git diff --name-only | tr '\n' ' ' | rubocop However Rubocop still checks all project files. Is there something wrong on my piping? On Rubocop? Somewhere else?
bjacquet
  • 21
  • 3
1
vote
1 answer

Failed building puma 3.11.0 on Ubuntu 17.10

Tried to install puma with the following command sudo gem install puma -v '3.11.0' Got the below message: Building native extensions. This could take a while... ERROR: Error installing puma: ERROR: Failed to build gem native extension. …
Koala Yeung
  • 191
  • 1
  • 1
  • 8
1
vote
0 answers

How can I debug Ruby Process that keeps climbing?

A few days ago all 4 of my app servers started having issues. It came after I deployed some code, but all I did was update a local database file that stores some IP Addresses, so I didn't make any actual code changes. It seems like right around that…
Sean
  • 111
  • 1
1
vote
1 answer

Get array output in puppet ERB from hiera

I have a array defined in the following format in hiera. master_servers: - "stage-01.com" - "stage-02.com" I am trying to populate the config file with ERB in the following format discovery.zen.ping.unicast.hosts: ["stage-01.com",…
nitins
  • 2,579
  • 15
  • 44
  • 68
1
vote
1 answer

What exactly is the difference between node vs @node in chef template files

I am new to chef and not able to get a hang of the difference between node vs @node usage in template files. I am not able to find a good documentation around this particular thing. Any explanation or reference to good documentation would be much…
1
vote
3 answers

Ruby net:LDAP returns "code = 53 message = Unwilling to perform" error

I am getting this error "code = 53, message = Unwilling to perform" while I am traversing the eDirectory treebase = "ou=Users,o=MTC". My ruby script can read about 126 entries from eDirectory and then it stops and prints out this error. I do not…
Yong
1
vote
2 answers

Permanent way to execurte a command for root on system startup in Mac OS

On Mac OS my CI server's build agent runs as root. I have messed with the ruby version on by defaul ruby -v reports version 2.0, while after eval "$(rbenv init -)" is being executed, I get a desired 2.4. If I were to set the eval "$(rbenv init -)"…
Maxim V. Pavlov
  • 663
  • 3
  • 11
  • 29
1
vote
0 answers

Remove Ruby 2.4 and make 2.3 as default

I have two ruby installations on my ubuntu 14.04. like this nifras@Nifras-pc:~$ ruby -v ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux] nifras@Nifras-pc:~$ ruby2.3 -v ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux-gnu] How do I…
1
vote
0 answers

Amazon Elastic Beanstalk's latest platform version is outdated

When creating my Elastic Beanstalk application, I selected the latest platform version of Amazon Linux running Ruby (Puma). But, it has an outdated version (compared to the current stable version) of Ruby & Bundler. How can I create an EC2 instance…
1
vote
1 answer

chef recipe: fix flow of installation of packages

I am using chef for provisioning a vpn-server in my infrastructure. Below is the code which is used to install few components of libreswan-ipsec vpn. %w( libnss3-dev libnspr4-dev pkg-config libpam0g-dev libcap-ng-dev libcap-ng-utils…
Shailesh Sutar
  • 1,517
  • 5
  • 23
  • 41
1
vote
2 answers

r10k on CEntOS 6.7, has anyone achieved this feat?

Do you guys know how one might run r10k properly on a CEntOS 6.7 server with Puppet 3.6? Is that a contradiction in terms? I checked the r10k source code's list of requirements: https://github.com/puppetlabs/r10k#requirements It looks like it…
Nathan Basanese
  • 341
  • 2
  • 5
  • 19
1
vote
1 answer

How to install mysql gem under OS X

When installing the ruby mysql gem by doing: sudo gem install mysql Subsequent rails migrations still fail, with a message like: $ rake db:migrate (in /Users/guy/code/project) rake aborted! uninitialized constant MysqlCompat::MysqlRes (See full…
1
vote
1 answer

Blank value in custom puppet fact

I know that the following custom fact matches the string I want, as if I add a 'puts' or 'print' ahead of the $1 it prints the correct string. But as show the fact returns nothing. A blank. Facter.add(:myhost) do confine :kernel => "Linux" …
spoovy
  • 354
  • 4
  • 15