module Commands::AppConfig
Public Instance Methods
app_config()
click to toggle source
# File lib/busbar_cli/commands/app_config.rb, line 20 def app_config return Services::AppConfig::Displayer.call if options.empty? return Services::AppConfig::Reseter.call if options.reset return Services::AppConfig::Unseter.call(options.unset) if options.unset AVAILABLE_CONFIGS.each do |resource| next unless options.send(resource) Services::AppConfig.set(resource, options.send(resource)) puts "#{resource} #{options.send(resource)} set" end end