Method: Toolshed::Client#toolshedrc_path
- Defined in:
- lib/toolshed/client.rb
#toolshedrc_path ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/toolshed/client.rb', line 51 def toolshedrc_path @toolshedrc_path ||= begin dir = Dir.pwd while File.(dir) != '/' unless File.exist?("#{dir}/.toolshedrc") dir = File.join dir, '..' next end credentials_loaded_from = "#{dir}/.toolshedrc" break end credentials_loaded_from end end |