Page 1 of 1
[20:07:37] nemish: I've tried Rake::Task['release_checks'].enhance do Rake::Task['check:symlinks].delete end
[20:37:20] nemish: well i thought enhance was setting pre-reqs on the release_checks task... so you'd think it would run first
[20:51:10] nemish: matthewd: yeah but when i run a bundle exec rake release_checks at the end it still fails on check:symlinks
[19:01:14] nemish: I have probably a simple question... I have a server that I did a "gem install FOO" on and it went and installed the gem and it's dependencies... now few months later when i do a "gem install FOO" it downloads newer versions of the dependencies even though it's same version of the FOO gem but some of those children require ruby 2.2 :(
[19:01:46] nemish: is there a way I can use a Gemfile or something to install system gems instead of bundled gems
[16:45:15] nemish: Can someone help me figure out why my puts evaluations are all blank? http://pastebin.com/VN7f8TGe
[17:02:42] nemish: c_nick: here is the full script if it helps: https://gist.github.com/cdenneen/3d170620ccfc38b5b077d9baeaf2cf94
[17:46:05] nemish: apeiros: maybe I'm not fully understanding your statement? You said I'm overriding role = facts[role]. role isn't currently set (only inside the facts hash). I'm trying to print out facts[role] and it's empty
[17:49:21] nemish: c_nick: I can and just did comment out line 28... but the 2 puts above it are printing blank values
[21:46:35] nemish: if i wanted to rescue that script if /usr/bin/aws (pip awscli) wasn't installed or if aws returned error because of creds missing... how would I go about doing that
[21:48:26] nemish: i'm far from a ruby guy this was as good as I got... just have no idea how to rescue it :(
[21:57:43] nemish: so basically line 9-23 would only get run if exit of tags exec is 0... else rescue just so the ruby script returns 0 exit code
[22:05:46] nemish: bricker, modules/ec2tags/lib/facter/ec2tags.rb:8:in `<main>': undefined local variable or method `exit_status' for main:Object (NameError)
[22:08:13] nemish: bricker, /usr/share/gems/gems/json-1.7.7/lib/json/common.rb:155:in `initialize': no implicit conversion of nil into String (TypeError)
[20:38:28] nemish: on centos7 it appears ruby/gem are installed in /usr/bin but gems get installed in /usr/local/bin ... any idea why that might be? is there a way to globally assign the executable path back to /usr/bin?
[20:40:20] nemish: but when I do a "sudo librarian-puppet update" it complains librarian-puppet isn't found because /usr/local/bin isn't in root's path... so while I can add it to the PATH i'm trying to understand the rationale for moving them to /usr/local/bin and if that can be changed back
[16:53:24] nemish: quick ruby syntax help... if foo == 'bar' && something == 'boo' || somethingelse == 'bas' && last == 'yes'... does that work with the OR or does that screw up the &&?
[16:55:47] nemish: so basically i want foo && last && either something or somethingelse... so will this work or will the || cause last or foo to be not required?
[16:57:43] nemish: right but i'm basically trying to avoid foo and something OR somethingelse and last... i want foo AND last with something or somethingelse
[16:58:35] nemish: so foo == 'bar' && (something == 'value1' || somethingelse == 'value2') && last == 'yes'
[17:01:59] nemish: centrx: sorry don't really understands methods here in this case... i'm trying to modify existing ruby code... so I'm not a ruby coder at all :(
[17:02:23] nemish: so basically trying to do: if os_key == 'RedHat' && Facter.value(:operatingsystem) == 'RedHat' || Facter.value(:operatingsystem) == 'CentOS' && Facter.value(:operatingsystemrelease).to_i >= 7