Class: Bricky::Command

Inherits:
Thor
  • Object
show all
Defined in:
lib/bricky/command.rb

Instance Method Summary collapse

Instance Method Details

#builderObject



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/bricky/command.rb', line 24

def builder
  Bricky.logger.level = Logger::DEBUG if options['debugger']

  exit 1 unless requirements.check_and_execute do
    if options['just-image']
      dispatch(:bootstrap)
    else
      dispatch(:bootstrap) && dispatch(:builder)
    end
  end
end

#installObject



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

def install
  dispatch(:install)
end

#versionObject



37
38
39
# File 'lib/bricky/command.rb', line 37

def version
  dispatch(:version)
end