Class: Server
Instance Method Summary collapse
- #build ⇒ Object
- #configure ⇒ Object
- #info ⇒ Object
- #install ⇒ Object
- #server ⇒ Object
- #ssh ⇒ Object
- #stats ⇒ Object
Instance Method Details
#build ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/server.rb', line 15 def build choose do || .prompt = "What type of server is this going to be?" .choice(:web) { Workflows::Web.start! } .choice(:db) { Workflows::Db.start! } end end |
#configure ⇒ Object
32 33 34 |
# File 'lib/server.rb', line 32 def configure puts "Configuring" end |
#info ⇒ Object
52 53 54 55 56 57 58 59 |
# File 'lib/server.rb', line 52 def info puts "Nginx path: #{Conf::nginx_path}" puts "PHP-FPM path: #{Conf::phpfpm_path}" puts "Yum package manager available" if Installed::yum? puts "Brew package manager available" if Installed::brew? puts "PHP-FPM installed" if Installed::phpfpm? puts "Nginx installed" if Installed::nginx? end |
#install ⇒ Object
27 28 29 |
# File 'lib/server.rb', line 27 def install puts "Installing" end |
#server ⇒ Object
37 38 39 |
# File 'lib/server.rb', line 37 def server puts "Server settings" end |
#ssh ⇒ Object
42 43 44 |
# File 'lib/server.rb', line 42 def ssh puts "SSH keys" end |
#stats ⇒ Object
47 48 49 |
# File 'lib/server.rb', line 47 def stats puts "Machine stats" end |