Class: Services::AppConfig::Reseter

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

Class Method Summary collapse

Class Method Details

.callObject



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

def self.call
  Confirmator.confirm(
    question: 'Are you sure you want to reset all of your application configs? ' \
              'This action is irreversible.',
    exit_message: 'Exiting without reseting application configs.'
  )
  Services::AppConfig.reset_all
  puts 'Application configuration reseted with success.'
  exit 1
end