51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/threeman/cli.rb', line 51
def start
procfile_name = options[:procfile]
pwd = options[:root] || Dir.pwd
procfile = Threeman::Procfile.new(File.expand_path(procfile_name, pwd))
formation = parse_formation(options[:formation])
commands = procfile.commands(pwd, options[:port] || 5000, options[:command_prefix], formation)
frontend_name = options[:frontend] || auto_frontend
unless frontend_name
puts "Couldn't determine a frontend to use. Please specify one using --frontend."
print_valid_frontend_names
exit! 1
end
valid_frontend_open_option?(frontend_name) if options[:open_in_new_tab]
frontend(frontend_name, options).run_commands(commands)
end
|