lib/invoker/power/setup.rb in invoker-1.5.4 vs lib/invoker/power/setup.rb in invoker-1.5.5
- old
+ new
@@ -24,21 +24,21 @@
end
end
def initialize(tld)
if tld !~ /^[a-z]+$/
- Invoker::Logger.puts("Please specify valid tld".color(:red))
+ Invoker::Logger.puts("Please specify valid tld".colorize(:red))
exit(1)
end
self.tld = tld
end
def install
if check_if_setup_can_run?
setup_invoker
else
- Invoker::Logger.puts("The setup has been already run.".color(:red))
+ Invoker::Logger.puts("The setup has been already run.".colorize(:red))
end
self
end
def drop_to_normal_user
@@ -75,10 +75,10 @@
def remove_resolver_file
begin
safe_remove_file(resolver_file)
rescue Errno::EACCES
- Invoker::Logger.puts("Running uninstall requires root access, please rerun it with sudo".color(:red))
+ Invoker::Logger.puts("Running uninstall requires root access, please rerun it with sudo".colorize(:red))
raise
end
end
def safe_remove_file(file)