Class: Nachos

Inherits:
Object
  • Object
show all
Defined in:
lib/nachos.rb,
lib/nachos/main.rb,
lib/nachos/config.rb,
lib/nachos/github.rb,
lib/nachos/version.rb

Defined Under Namespace

Modules: Github Classes: CLI, Config, Main

Constant Summary collapse

VERSION =
"0.0.2"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Nachos

Returns a new instance of Nachos.



16
17
18
# File 'lib/nachos.rb', line 16

def initialize(*args)
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



14
15
16
# File 'lib/nachos.rb', line 14

def args
  @args
end

Class Method Details

.execute(*args) ⇒ Object



20
21
22
# File 'lib/nachos.rb', line 20

def self.execute(*args)
  new(*args).execute
end

Instance Method Details

#executeObject



24
25
26
27
# File 'lib/nachos.rb', line 24

def execute
  Nachos::CLI.start
  exit 0
end

#Hub(args) ⇒ Object



29
30
31
# File 'lib/nachos.rb', line 29

def Hub(args)
  Hub::Runner.new(*args.split(' '))
end