Ruby on Rails
Wednesday, February 2, 2011
Is this part of a capistrano script?
If so then it uses the value in deploy.rb where
set :db_file
is defined.
(Perhaps look here:
https://github.com/leehambley/capistrano-handbook/blob/master/index.markdown )
Otherwise I would imply you should give some more information about the type of script you are looking at.
On 02/02/11 15:22, Erwin wrote:
I am looking at a ruby script and testing it... I don't fully understand the following line of code : database = YAML::load_file("config/#{fetch(:db_file, 'database.yml')}") => fetch(:db_file, 'database.yml') ... what's is this function fetch() ? I know the fetch(key, *extras) in ActiveSupport, but this is not the case.... any suggestion ? thanks -- best regards Bente Pieck
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment