Class: Services::AppConfig::Unseter

Inherits:
Object
  • Object
show all
Defined in:
lib/busbar_cli/services/app_config/unseter.rb

Class Method Summary collapse

Class Method Details

.call(config) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/busbar_cli/services/app_config/unseter.rb', line 4

def self.call(config)
  if AVAILABLE_CONFIGS.include?(config)
    Services::AppConfig.delete(config)
    puts "#{config} removed from local config."
  else
    puts "#{config} is not a valid config key. The valid keys are:"
    puts AVAILABLE_CONFIGS.join(' / ')
  end
end