module Oliver
Public Instance Methods
process(args)
click to toggle source
# File lib/oliver.rb, line 25 def process(args) case arg = args.shift when 'init' then Commands.init(args) when 'update' then Commands.update(args) when 'list' then Commands.list(args) when 'pull' then Commands.pull(args) when 'add' then Commands.add(args) when 'remove' then Commands.remove(args) when 'help' then Commands.help when 'version' then puts version else puts "oliver: '#{arg}' is not a recognized command.".colorize(:red) end end
run(*args)
click to toggle source
# File lib/oliver.rb, line 13 def run(*args) if args.empty? Commands.help else process args end end
version()
click to toggle source
# File lib/oliver.rb, line 21 def version "oliver version #{Version::VERSION}".colorize(:green) end