Class: GitAuto::Commands::ConfigCommand
- Inherits:
-
Object
- Object
- GitAuto::Commands::ConfigCommand
- Defined in:
- lib/git_auto/commands/config_command.rb
Instance Method Summary collapse
- #execute(args = []) ⇒ Object
-
#initialize ⇒ ConfigCommand
constructor
A new instance of ConfigCommand.
Constructor Details
#initialize ⇒ ConfigCommand
Returns a new instance of ConfigCommand.
9 10 11 12 13 |
# File 'lib/git_auto/commands/config_command.rb', line 9 def initialize @prompt = TTY::Prompt.new @credential_store = Config::CredentialStore.new @settings = Config::Settings.new end |
Instance Method Details
#execute(args = []) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/git_auto/commands/config_command.rb', line 15 def execute(args = []) if args.empty? interactive_config else handle_config_args(args) end end |