module GitFeats::Config
Constants
- CONFIG_KEY_CMD
- CONFIG_USER_CMD
Public Instance Methods
exists?()
click to toggle source
Check if config exists and is configured properly
# File lib/git-feats/config.rb, line 20 def exists? !name.empty? && !key.empty? end
key()
click to toggle source
Returns the config value for api key
# File lib/git-feats/config.rb, line 15 def key @key ||= `#{CONFIG_KEY_CMD}`.chomp end
name()
click to toggle source
Returns the config value for username
# File lib/git-feats/config.rb, line 10 def name @name ||= `#{CONFIG_USER_CMD}`.chomp end