Sha256: c18b53c3b2c597cb64e6fffecfb0926175786035054a90c6570590820a4b138e

Contents?: true

Size: 606 Bytes

Versions: 1

Compression:

Stored size: 606 Bytes

Contents

require "octopussy"
require "hub"
require "thor"
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require 'nachos/version'
require 'nachos/cli'
require 'nachos/github'

class Nachos
  
  attr_reader :args, :command
  attr_accessor :out, :err, :exit_code
  
  def initialize(*args)
    @args = args
    @command = args.first || "help"
    @exit_code = 0
  end
  
  def self.execute(*args)
    new(*args).execute
  end
  
  def runner
    @runner ||= Runner.new
  end
  
  def execute
    Nachos::CLI.start
    exit 0
  end
  
  def Hub(args)
    Hub::Runner.new(*args.split(' '))
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nachos-0.0.1 lib/nachos.rb