Class: Keystone::Boot

Inherits:
Object
  • Object
show all
Defined in:
lib/keystone/boot.rb

Instance Method Summary collapse

Constructor Details

#initialize(commands, options) ⇒ Boot

Returns a new instance of Boot.



3
4
5
6
# File 'lib/keystone/boot.rb', line 3

def initialize(commands, options)
  @commands = commands
  @options  = options
end

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
# File 'lib/keystone/boot.rb', line 8

def run
  case @commands[0]
  when "install"
    Keystone::Installer.new(@options).install
  when "compile"
    Keystone::Compiler.new.compile
  end
end