Module: Tipi::CLI

Defined in:
lib/tipi/cli.rb

Constant Summary collapse

"\n" +
"         ooo\n" +
"       oo\n" +
"     o\n" +
"   \\|/    Tipi - a better web server for a better world\n" +
"   / \\       \n" +
"  /   \\      https://github.com/digital-fabric/tipi\n" +
"⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺\n"

Class Method Summary collapse

Class Method Details

.display_bannerObject



89
90
91
# File 'lib/tipi/cli.rb', line 89

def self.display_banner
  puts BANNER
end

.start(argv = ARGV.dup) ⇒ Object



82
83
84
85
86
87
# File 'lib/tipi/cli.rb', line 82

def self.start(argv = ARGV.dup)
  opts = Tipi.opts_from_argv(argv)
  display_banner if STDOUT.tty? && !opts[:silent]

  Tipi::Supervisor.run(opts)
end