Class: Krb::Setup::ApplyProductionNamespace

Inherits:
ApplicationService show all
Defined in:
lib/krb/setup/apply_production_namespace.rb

Overview

Sets up configuration

Instance Method Summary collapse

Methods inherited from ApplicationService

process, #prompt, #setup_file_name, #setup_file_path, #verify_admin, #verify_production, #verify_setup

Instance Method Details

#ask_phraseObject



14
15
16
# File 'lib/krb/setup/apply_production_namespace.rb', line 14

def ask_phrase
  'Please enter your production namespace (*namespace*.ngx.host) : '
end

#processObject



9
10
11
12
# File 'lib/krb/setup/apply_production_namespace.rb', line 9

def process
  input = prompt.ask(ask_phrase) { |q| q.required true }
  ::Krb::Setup::Update.process('production_namespace' => input)
end