Class: Webroar::UserInteraction

Inherits:
Object
  • Object
show all
Defined in:
lib/user_interaction.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ UserInteraction

Returns a new instance of UserInteraction.



25
26
27
28
# File 'lib/user_interaction.rb', line 25

def initialize(options)
  @options = options
  @gem_name = nil
end

Instance Method Details

#setup_admin_userObject



41
42
43
44
45
46
47
48
# File 'lib/user_interaction.rb', line 41

def setup_admin_user
  puts "Setting up server admin panel ..."

  username = read_user_name
  password = read_password

  write_user(username, password)
end

#user_inputObject

User input to install WebROaR



31
32
33
34
35
36
37
38
39
# File 'lib/user_interaction.rb', line 31

def user_input
  return nil, true, @gem_name if choose_gem_version

  setup_admin_user
  puts "Setting up server specifications ..."
        
  port = read_port
  return port, false, nil
end