lib/faastruby/cli.rb in faastruby-0.5.22 vs lib/faastruby/cli.rb in faastruby-0.5.23

- old
+ new

@@ -4,9 +4,10 @@ FUNCTION_NAME_REGEX = '[a-zA-Z\-_0-9\/\.]{1,}' WORKSPACE_NAME_REGEX = '[a-zA-Z0-im9_]{1}[a-zA-Z0-9\-]{1,}[a-zA-Z0-9_]{1}' FAASTRUBY_YAML = 'faastruby.yml' SPINNER_FORMAT = :spin_2 require 'faastruby/supported_runtimes' + require 'faastruby/regions' class CLI def self.error(message, color: :red) message.compact.each {|m| STDERR.puts m.colorize(color)} if message.is_a?(Array) STDERR.puts message.colorize(color) if message.is_a?(String) exit 1