Class: Git::Nebenan::Commands::Config
- Defined in:
- lib/git/nebenan/commands/config.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ Config
constructor
A new instance of Config.
Methods inherited from Command
#config, #jira_client, #logger, #platform, #prompt
Constructor Details
#initialize(options) ⇒ Config
Returns a new instance of Config.
5 6 7 |
# File 'lib/git/nebenan/commands/config.rb', line 5 def initialize() @options = end |
Instance Method Details
#execute ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/git/nebenan/commands/config.rb', line 9 def execute config.set('jira.username', value: prompt.ask('JIRA username', default: ENV['USER'])) config.set('jira.password', value: prompt.mask('JIRA password')) config.set('jira.site', value: prompt.ask('JIRA site', default: 'https://jira.nebenan.de/')) config.set('jira.project', value: prompt.ask('JIRA project', default: 'CORE')) config.write(force: true) end |