Method: Fuel::CLI::Main#config
- Defined in:
- lib/fuel/cli/main.rb
#config ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/fuel/cli/main.rb', line 27 def config raise Thor::Error, set_color("Provide at least one key-value pair!", :red) if .empty? if .has_key?('gerrit_url') Config.set('gerrit', 'url', ['gerrit_url']) end if .has_key?('jira_url') Config.set('jira', 'url', ['jira_url']) end if .has_key?('jenkins_url') Config.set('jenkins', :server_url, ['jenkins_url']) end end |