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

#user_inputObject

User input to install WebROaR



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/user_interaction.rb', line 31

def user_input
  return nil, true, @gem_name if choose_gem_version

  puts "Setting up server admin panel ..."

  username = read_user_name
  password = read_password

  write_user(username, password)

  puts "Setting up server specifications ..."

  port = read_port

  return port, false, nil
end