lib/invoker.rb in invoker-1.5.4 vs lib/invoker.rb in invoker-1.5.5
- old
+ new
@@ -4,12 +4,11 @@
require "formatador"
require "ostruct"
require "uuid"
require "json"
-require "rainbow"
-require "rainbow/ext/string"
+require "colorize"
require "etc"
require "invoker/version"
require "invoker/logger"
require "invoker/daemon"
@@ -34,11 +33,11 @@
require "invoker/process_printer"
module Invoker
class << self
attr_accessor :config, :tail_watchers, :commander
- attr_accessor :dns_cache, :daemonize, :nocolors
+ attr_accessor :dns_cache, :daemonize, :nocolors, :certificate, :private_key
alias_method :daemonize?, :daemonize
alias_method :nocolors?, :nocolors
def darwin?
@@ -72,10 +71,10 @@
def can_run_balancer?(throw_warning = true)
return true if File.exist?(Invoker::Power::Config.config_file)
if throw_warning
- Invoker::Logger.puts("Invoker has detected setup has not been run. Domain feature will not work without running setup command.".color(:red))
+ Invoker::Logger.puts("Invoker has detected setup has not been run. Domain feature will not work without running setup command.".colorize(:red))
end
false
end
def setup_config_location