lib/smartcloud/grids/buildpacker.rb in smartcloud-0.0.181 vs lib/smartcloud/grids/buildpacker.rb in smartcloud-0.0.182
- old
+ new
@@ -24,11 +24,10 @@
exit 0
end
# Perform bundle install
def bundle_install?
- logger.info ""
logger.info "Performing bundle install ..."
set_logger_formatter_tabs
exit_status = nil
Open3.popen2e("bundle", "install", "--deployment", "--clean") do |stdin, stdout_and_stderr, wait_thr|
@@ -45,11 +44,10 @@
end
end
# Perform pre-compiling of assets
def precompile_assets?
- logger.info ""
logger.info "Installing Javascript dependencies & pre-compiling assets ..."
set_logger_formatter_tabs
exit_status = nil
Open3.popen2e("bundle", "exec", "rails", "assets:precompile") do |stdin, stdout_and_stderr, wait_thr|
@@ -66,28 +64,26 @@
end
end
# Perform starting of web server
def start_web_server?
- logger.debug ""
logger.debug "Starting Web Server ..."
# Remove server.pid if it exists
FileUtils.rm("tmp/pids/server.pid") if File.exist? "tmp/pids/server.pid"
# if system("god -c Godfile -D")
- logger.info ""
logger.info "Launched Application ... Success."
# return true
# end
return false
end
def set_logger_formatter_arrow
logger.formatter = proc do |severity, datetime, progname, message|
severity_text = (severity == 'INFO') ? "" : "#{severity}: "
- severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{1f604}",
- "WARN" => "\u{2757}", "ERROR" => "\u{274c}", "FATAL" => "\u{274c}",
+ severity_symbols = { "DEBUG" => "\u{1f527}", "INFO" => "\u{26a1}",
+ "WARN" => "\u{2757}", "ERROR" => "\u{274c}", "FATAL" => "\u{2b55}",
"UNKNOWN" => "\u{2753}"
}
symbol_text = (message == "") ? "" : severity_symbols[severity]
"\t\t\t\t#{symbol_text} #{severity_text}#{message}\n"
end