class Gitdig::Commands::Config
Public Instance Methods
org(name)
click to toggle source
# File lib/gitdig/commands/config.rb, line 29 def org(name) if options[:help] invoke :help, ['org'] else require_relative 'config/org' command = Gitdig::Commands::Config::Org.new(name, options) ensure_scope(command).execute end end
token(token)
click to toggle source
# File lib/gitdig/commands/config.rb, line 16 def token(token) if options[:help] invoke :help, ['token'] else require_relative 'config/token' command = Gitdig::Commands::Config::Token.new(token, options) ensure_scope(command).execute end end
Private Instance Methods
ensure_scope(command)
click to toggle source
# File lib/gitdig/commands/config.rb, line 41 def ensure_scope(command) command.configs.prepend_path Dir.home if options[:global] command end