Module: GithubCLI::Helpers

Extended by:
Helpers
Included in:
Helpers
Defined in:
lib/github_cli/helpers.rb

Instance Method Summary collapse

Instance Method Details

#default_configfileObject

Raises:



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_configfileObject



13
14
15
# File 'lib/github_cli/helpers.rb', line 13

def find_configfile
  current = File.expand_path(Dir.pwd)
end