<andywww>
i can’t seem to access the attributes that i passed in with DocumentSelectForm
clemens3 has joined #ruby
KeyJoo has quit [Remote host closed the connection]
mitescugd has quit [Ping timeout: 244 seconds]
mitescugd has joined #ruby
KeyJoo has joined #ruby
<kevinsjoberg>
andywww: Don't you need to pass the opts to super? I.e., super(opts).
AJA4351 has joined #ruby
<kevinsjoberg>
Oh, sorry. Looking at the wrong class.
AJA4350 has quit [Ping timeout: 250 seconds]
AJA4351 is now known as AJA4350
<andywww>
its like the proc seems to be able to access the attributes of the class but calling them directly can’t
FastJack has quit [Ping timeout: 264 seconds]
FastJack has joined #ruby
johnny56_ has quit [Ping timeout: 272 seconds]
markoong has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
ashirase has quit [Remote host closed the connection]
stretchlimo has quit [Quit: This computer has gone to sleep]
johnny56_ has joined #ruby
aupadhye has quit [Quit: Leaving]
Snowy has joined #ruby
AJA4350 has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
indistylo has joined #ruby
AJA4350 has joined #ruby
duckpuppy has quit [Remote host closed the connection]
duckpuppy has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
lucasb has joined #ruby
cow[moo] has quit [Client Quit]
Snowy has quit [Quit: ragequit]
jcalla has joined #ruby
cow[moo] has joined #ruby
duckpuppy has quit [Remote host closed the connection]
snk has left #ruby ["WeeChat 2.2"]
v01d4lph4 has quit [Remote host closed the connection]
duckpuppy has joined #ruby
GinoMan has joined #ruby
apparition has quit [Quit: Bye]
paranoicsan has joined #ruby
paranoicsan has quit [Client Quit]
bmurt has joined #ruby
fluxAeon has joined #ruby
GinoMan2440 has joined #ruby
GinoMan has quit [Ping timeout: 250 seconds]
noark9 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
andywww has quit [Quit: andywww]
AJA4351 has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
AJA4351 is now known as AJA4350
conta has joined #ruby
prestori_ has joined #ruby
prestorium has quit [Ping timeout: 268 seconds]
conta has quit [Ping timeout: 246 seconds]
dviola has joined #ruby
prestori_ has quit [Quit: prestori_]
kapil____ has quit [Quit: Connection closed for inactivity]
prestorium has joined #ruby
polishdub has joined #ruby
prestorium has quit [Remote host closed the connection]
prestorium has joined #ruby
Rapture has joined #ruby
catdude has joined #ruby
rippa has joined #ruby
<catdude>
Question: In the line test "${fqdn#*domain1.net}" != "$fqdn" && federal_build="TRUE" what is the "#*" doing? I'm an absolute beginner at Ruby but fairly skilled at Python.
amerlin has quit [Quit: leaving]
<mozzarella>
catdude: it's not doing anything
<catdude>
Hmmm. It's not obvious to me what that whole line is doing then.
<mozzarella>
what is it part of? looks like some kind of templating language
indistylo has quit [Read error: Connection reset by peer]
<mozzarella>
ruby interpolation is #{}, not ${}
<phaul>
also "TRUE" is not how we represent true
<phaul>
makes you wonder if this is ruby at all
awkwords has joined #ruby
<catdude>
Ah crap - my bad. It's in shell script. Sorry about that. I've been looking at Ruby scripts all morning and didn't check the file name.
<jane_booty_doe>
looks like bash
maryo has joined #ruby
Emmanuel_Chanel has quit [Read error: Connection reset by peer]
Puppet_ has joined #ruby
catdude has quit [Quit: Page closed]
skryking has quit [Quit: Leaving]
skryking has joined #ruby
aufi has quit [Ping timeout: 259 seconds]
AJA4350 has quit [Ping timeout: 250 seconds]
conta has joined #ruby
maryo has quit [Read error: Connection reset by peer]
maryo has joined #ruby
conta has quit [Ping timeout: 250 seconds]
xrexeon has joined #ruby
blackmesa1 has quit [Ping timeout: 258 seconds]
Emmanuel_Chanel has joined #ruby
conta has joined #ruby
cthulchu_ has quit [Ping timeout: 246 seconds]
tdy has joined #ruby
noark9 has quit [Quit: noark9]
conta has quit [Remote host closed the connection]
conta has joined #ruby
agent_white has joined #ruby
nowhere_man has quit [Ping timeout: 244 seconds]
rikkipitt has joined #ruby
renich_ has quit [Remote host closed the connection]
renich_ has joined #ruby
blackmesa1 has joined #ruby
maryo has quit [Quit: Leaving]
\void has joined #ruby
clemens3 has quit [Ping timeout: 268 seconds]
valadares has quit [Remote host closed the connection]
valadares has joined #ruby
hiroaki has joined #ruby
cthulchu has joined #ruby
valadares has quit [Remote host closed the connection]
valadares has joined #ruby
jcalla has quit [Remote host closed the connection]
nowhere_man has joined #ruby
noark9 has joined #ruby
conta2 has joined #ruby
Dbugger has joined #ruby
conta2 has quit [Ping timeout: 240 seconds]
mensvaga has quit [Quit: Leaving.]
donofrio has joined #ruby
ellcs has quit [Ping timeout: 240 seconds]
noark9 has quit [Ping timeout: 246 seconds]
blackmesa1 has quit [Ping timeout: 268 seconds]
mikecmpb_ has quit [Quit: inabit. zz.]
ngw has joined #ruby
<ngw>
I wanted to see an example of a library that wraps some kind of client to see how the client is actually used
<ngw>
for example: client to elasticsearch, with a set of specific objects "under" it that know a lot about the structure of the indexes and such, so basically I have an object Index that needs a client to be executed, but whose logic is all inside the Index object
<ngw>
basically when I call Index.create or something like that it turns into a call to a client that parforms a parametrized call somewhere
<ngw>
I don't know if I've been clear, I don't think so :)
maryo has joined #ruby
<havenwood>
ngw: Index.create reminds me of Rails. Is this in Rails and you're talking a pseudo model or that just happened to be your example?
krawchyk has joined #ruby
deathwishdave has joined #ruby
<havenwood>
ngw: There are a ton of examples, but it's often very domain specific.
<havenwood>
ngw: Do you have a specific thing you're wrapping, or just generally exploring patterns?
<ngw>
only example, it's something that is gonna run on AWS lambda
<ngw>
I'm wrapping Elasticsearch
rikkipitt has quit [Quit: Leaving...]
<ngw>
the client will basically be the elasticsearch client
<ngw>
second example makes perfect sense too, considering everything is on lambda I couldn't care less of initializing a client every time I call an object
<ngw>
thanks
<havenwood>
ngw: I'm sure the channel would be happy to help hone it once you have some code.
<ngw>
bookmarked
<havenwood>
There should be lots of good examples of various JSONClients.
nowhere_man has quit [Read error: Connection reset by peer]
<pedahzur>
Seems `ip addr` reports two IP addresses. This should not be happening. Very strange.
<al2o3-cr>
pedahzur: is one your vagrant ip address and the other local ip address?
ngw has joined #ruby
<al2o3-cr>
are you logged into some virtual vm?
Junaos has joined #ruby
fredolinhares has joined #ruby
<pedahzur>
al2o3-cr: Not sure what you mean by "vagrant IP address vs. local IP address." When the box comes up, it gets an address from the DHCP server. And the two addresses it gets vary every time, so it's not something left over from making the box.
ngw has quit [Ping timeout: 246 seconds]
<al2o3-cr>
so it's dynamically assigning two ip addresses for on NIC?
<al2o3-cr>
*one
<al2o3-cr>
hmm, not sure what's going on there then.
brianj has quit [Remote host closed the connection]
<pedahzur>
Yeah, I really don't know what's going on either. When I restart networking, it clears out the "extra" address.
<pedahzur>
And only reports the one given by "ifconfig."
johnny56_ has joined #ruby
<phaul>
what causes the extra address to appear?
<pedahzur>
phaul: That's what I'm trying to figure out. :)
<phaul>
:)
<phaul>
I assumed you could reproduce this. So now that you cleared it it's all good and the 2nd address is not coming back
<phaul>
or it comes back after a while?
<al2o3-cr>
well, `ip addr` will report what `Socket.getifaddrs` reports, as they both use rtnetlink. ifconfig uses ioctl.
<pedahzur>
I don't know if comes back after a while. But it seems something odd in the network stack, so not a Ruby Socket problem after all. I guess I'll just restart networking before I pull the information if I have to. That is rather odd.
<al2o3-cr>
which is ancient now in our day and age.
evdubs has quit [Remote host closed the connection]