Class: Webroar::UserInteraction
- Inherits:
-
Object
- Object
- Webroar::UserInteraction
- Defined in:
- lib/user_interaction.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ UserInteraction
constructor
A new instance of UserInteraction.
- #setup_admin_user ⇒ Object
-
#user_input ⇒ Object
User input to install WebROaR.
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 = @gem_name = nil end |
Instance Method Details
#setup_admin_user ⇒ Object
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_input ⇒ Object
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 |