Project

General

Profile

« Previous | Next » 

Revision 17d02c63

Added by Swapnil Abnave about 6 years ago

Fixes #22662 - rubocop complaining unexpected token: cli/base.rb

View differences:

lib/foreman_maintain/cli/base.rb
option ['-y', '--assumeyes'], :flag,
'Automatically answer yes for all questions'
option ['-w', '--whitelist'], 'whitelist',
'Comma-separated list of labels of steps to be ignored' do |whitelist|
option(['-w', '--whitelist'], 'whitelist',
'Comma-separated list of labels of steps to be ignored') do |whitelist|
raise ArgumentError, 'value not specified' if whitelist.nil? || whitelist.empty?
whitelist.split(',').map(&:strip)
end

Also available in: Unified diff