Module: GithubCLI::Helpers
Instance Method Summary collapse
Instance Method Details
#default_configfile ⇒ Object
7 8 9 10 11 |
# File 'lib/github_cli/helpers.rb', line 7 def default_configfile configfile = find_configfile raise ConfigFileNotFound, "Could not locate .githubrc" unless configfile Pathname.new(configfile) end |
#find_configfile ⇒ Object
13 14 15 |
# File 'lib/github_cli/helpers.rb', line 13 def find_configfile current = File.(Dir.pwd) end |