module Icomoon::Cli
Constants
- Error
- MANIFEST_FILENAME
- Warning
Public Class Methods
error(text)
click to toggle source
# File lib/icomoon/cli.rb, line 36 def error(text) puts "#{'Error:'.red} #{text}" end
file_exists?(path)
click to toggle source
# File lib/icomoon/cli.rb, line 44 def file_exists?(path) File.exists?(path) end
log(text)
click to toggle source
# File lib/icomoon/cli.rb, line 32 def log(text) logger.log(text, false) end
logger()
click to toggle source
# File lib/icomoon/cli.rb, line 48 def logger @@logger end
logger=(logger)
click to toggle source
# File lib/icomoon/cli.rb, line 52 def logger=(logger) @@logger = logger end
logs(text)
click to toggle source
# File lib/icomoon/cli.rb, line 28 def logs(text) logger.log(text, true) end
put_separator()
click to toggle source
# File lib/icomoon/cli.rb, line 40 def put_separator logs('---') end
start(argv)
click to toggle source
# File lib/icomoon/cli.rb, line 24 def start(argv) Icomoon::Cli::Exec.run(argv) end