Class: CheckIt::Core
- Inherits:
-
Object
- Object
- CheckIt::Core
- Defined in:
- lib/checkit/core.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
Returns the value of attribute io.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(io) ⇒ Core
constructor
A new instance of Core.
- #perform_checks ⇒ Object
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
#io ⇒ Object
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_checks ⇒ Object
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 |