lib/invoker/power/setup/osx_setup.rb in invoker-1.5.4 vs lib/invoker/power/setup/osx_setup.rb in invoker-1.5.5

- old
+ new

@@ -15,11 +15,11 @@ install_firewall(port_finder.http_port, port_finder.https_port) # Before writing the config file, drop down to a normal user drop_to_normal_user create_config_file else - Invoker::Logger.puts("Invoker is not configured to serve from subdomains".color(:red)) + Invoker::Logger.puts("Invoker is not configured to serve from subdomains".colorize(:red)) end self end def uninstall_invoker @@ -40,11 +40,11 @@ end def install_resolver(dns_port) open_resolver_for_write { |fl| fl.write(resolve_string(dns_port)) } rescue Errno::EACCES - Invoker::Logger.puts("Running setup requires root access, please rerun it with sudo".color(:red)) + Invoker::Logger.puts("Running setup requires root access, please rerun it with sudo".colorize(:red)) raise end def install_firewall(http_port, https_port) File.open(FIREWALL_PLIST_FILE, "w") { |fl| @@ -108,18 +108,18 @@ def setup_resolver_file return true unless File.exist?(resolver_file) Invoker::Logger.puts "Invoker has detected an existing Pow installation. We recommend "\ - "that you uninstall pow and rerun this setup.".color(:red) + "that you uninstall pow and rerun this setup.".colorize(:red) Invoker::Logger.puts "If you have already uninstalled Pow, proceed with installation"\ " by pressing y/n." replace_resolver_flag = Invoker::CLI::Question.agree("Replace Pow configuration (y/n) : ") if replace_resolver_flag Invoker::Logger.puts "Invoker has overwritten one or more files created by Pow. "\ "If .#{tld} domains still don't resolve locally, try turning off the wi-fi"\ - " and turning it on. It'll force OS X to reload network configuration".color(:green) + " and turning it on. It'll force OS X to reload network configuration".colorize(:green) end replace_resolver_flag end private