Class: CheckIt::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/checkit/core.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ Core

Returns a new instance of Core.



13
14
15
# File 'lib/checkit/core.rb', line 13

def initialize(io)
  self.io = StyledIO.new(io)
end

Instance Attribute Details

#ioObject

Returns the value of attribute io.



6
7
8
# File 'lib/checkit/core.rb', line 6

def io
  @io
end

Class Method Details

.run(io = STDOUT) ⇒ Object



8
9
10
11
# File 'lib/checkit/core.rb', line 8

def self.run(io = STDOUT)
  self.new(io).perform_checks
  io.puts
end

Instance Method Details

#perform_checksObject



17
18
19
20
21
22
23
# File 'lib/checkit/core.rb', line 17

def perform_checks
  check_bundle
  check_dependencies
  # TODO: check if foreman is installed
  check_config_files
  # TODO: notify about test suites
end