Project

General

Profile

« Previous | Next » 

Revision 3897a1a8

Added by Marek Hulán over 10 years ago

Fixes #3238 - respect --no-colors option

View differences:

bin/foreman-installer
exit 0 if @result.nil? # --help invocation
# Parse the results
HighLine.color_scheme = HighLine::ColorScheme.new do |cs|
colors = HighLine::ColorScheme.new do |cs|
cs[:info] = [:bold, :cyan, :on_black]
cs[:bad] = [:bold, :red, :on_black]
cs[:good] = [:bold, :green, :on_black]
end
nocolors = HighLine::ColorScheme.new do |cs|
colors.keys.each { |k| cs[k.to_sym] = [] }
end
HighLine.color_scheme = Kafo::KafoConfigure.config.app[:colors] ? colors : nocolors
def module_enabled? name
mod = @result.module(name)
return false if mod.nil?
config/foreman-installer.yaml
:modules_dir: .
## Kafo tuning, customization of core functionality
:name: Foreman
# :no_prefix: false
# :mapping:
:order:

Also available in: Unified diff