Sha256: 89a4210b1ec075f7a89890c25d1aafda1e3ed05e14a7e1a237fca00167f91d62
Contents?: true
Size: 903 Bytes
Versions: 4
Compression:
Stored size: 903 Bytes
Contents
require File.dirname(__FILE__) + '/../../../lib/core/project' require File.dirname(__FILE__) + '/../../../lib/core/configuration' module Gator def self.set_argv(args) ARGV.length.times do |i| ARGV.delete_at i end args.length.times do |i| ARGV[i] = args[i] end end module CLI class Application def initialize self end def execute(args) raise "No command specified." if args.empty? command = args.shift raise "Command: \"#{command}\" could not be found." unless Gator::Command.has?(command) args << "--help" if args.empty? Gator::Command.get(command).start args end def shell @shell ||= Shell.new end end end class << self attr_accessor :application def shell application.shell end end self.application= Gator::CLI::Application.new end
Version data entries
4 entries across 4 versions & 1 rubygems