<michigan>
She's like "Oh my God, it's like a Ruby!"
<michigan>
lol
Arkantos has quit [Ping timeout: 260 seconds]
Arkantos_ has quit [Client Quit]
Arkantos has joined #ruby
skered has left #ruby [#ruby]
lunarkitty has quit [Quit: Connection closed for inactivity]
Arkantos_ has joined #ruby
Arkantos has quit [Ping timeout: 260 seconds]
Arkantos_ has quit [Client Quit]
justache has quit [Read error: Connection reset by peer]
justache has joined #ruby
Rounin has quit [Ping timeout: 256 seconds]
<libsys>
how could I call a method on a controller as rails does?
howdoi has joined #ruby
<libsys>
seems like the only way would be `eval("ClassName").new.public_send` ?
<libsys>
*how could I call a method on a controller from the router as rais does?
<libsys>
not neccesarily needs to be as rails does, but I'm exploring routing and I don't seems to find a way which doesn't use eval to call a controller from a string
<libsys>
s/seems/seem
<libsys>
sorry for by english xd
<libsys>
ok... looks like it's been too many hours today, ha
<adam12>
libsys: I'm not sure it's possible, because not only does Rails initialize the controller, but it sets a bunch of values too.
<adam12>
libsys: You can do it through the console I thought tho.
<adam12>
Can't call a controller, but you can simulate a request (app.get "/")
TCZ has quit [Quit: Leaving]
<havenwood>
libsys: FWIW, I'd Object.const_get('ClassName') rather than eval.
tkonto has quit [Quit: tkonto]
tkonto has joined #ruby
tkonto has quit [Client Quit]
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
donofrio has quit [Max SendQ exceeded]
donofrio has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
justache has quit [Read error: Connection reset by peer]
justache has joined #ruby
<libsys>
havenwood: const_get is exactly was I what looking for
michigan has quit [Quit: Connection closed for inactivity]
pwnd_sfw has quit [Quit: Ping timeout (120 seconds)]
pwnd_sfw has joined #ruby
BSaboia has joined #ruby
victori has joined #ruby
victori has quit [Remote host closed the connection]
victori has joined #ruby
lunarkitty has joined #ruby
jpw has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
ur5us has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
gr33n7007h has joined #ruby
Pixi_ has quit [Quit: Leaving]
berkhan has joined #ruby
vit has joined #ruby
Pixi has joined #ruby
jpw has quit [Remote host closed the connection]
itok_ has quit [Ping timeout: 264 seconds]
ralu has joined #ruby
itok_ has joined #ruby
<ralu>
Hello i want to install binary package in docker (fpm) . I am new to gem and I would like to store dependencies in file and installed from such list to have reproducible dockerfile. What is natural way to store list of dependencies in file and than install that binary from such list to be used in docker container?
<nakilon>
ruby gems are not binaries; you make a 'Gemfile' file that lists gem versions that is then being downloaded from rubygems.org
<nakilon>
and in docker the reproducibility is done by building a layer that includes the installation step
<ralu>
can you show how that would go with creating Gemfile and installing from there?
<nakilon>
also rubygems.org remembers the gem versions so you can't push another code to the same version
<nakilon>
you don't even need Gemfile if you use docker -- they are basically solving the same problem
<ralu>
but how do i create dockerfile that creates reproducable container?
<ralu>
i am looking for set of commands here
<nakilon>
you can build an image with RUN gem install <mygem>
<ralu>
will this command install same binary every time this is executed?
<ralu>
"same package"
<ralu>
and same set of packages
<nakilon>
docker does not execute it everytime
<nakilon>
it's stored as a layer
<ralu>
Yea I know that, but i want to have also reproducable dockerfile
<ralu>
so when i build docker file i want to have same container
<nakilon>
then docker has nothing to do with it
<ralu>
no it does not have to do with that
<nakilon>
this smells like misuing the docker
<nakilon>
gem install command has flag -v
<ralu>
yeah but dependencies are vaugley defined
<nakilon>
(this is why I don't go to work with rails)