Class: Server

Inherits:
Thor
  • Object
show all
Includes:
Workflows
Defined in:
lib/server.rb

Instance Method Summary collapse

Instance Method Details

#buildObject



15
16
17
18
19
20
21
22
23
24
# File 'lib/server.rb', line 15

def build
  choose do |menu|

    menu.prompt = "What type of server is this going to be?"

    menu.choice(:web) { Workflows::Web.start! }
    menu.choice(:db) { Workflows::Db.start! }

  end
end

#configureObject



32
33
34
# File 'lib/server.rb', line 32

def configure
  puts "Configuring"
end

#infoObject



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

#installObject



27
28
29
# File 'lib/server.rb', line 27

def install
  puts "Installing"
end

#serverObject



37
38
39
# File 'lib/server.rb', line 37

def server
  puts "Server settings"
end

#sshObject



42
43
44
# File 'lib/server.rb', line 42

def ssh
  puts "SSH keys"
end

#statsObject



47
48
49
# File 'lib/server.rb', line 47

def stats
  puts "Machine stats"
end