Class: CheckIt::ConfigFiles
- Inherits:
-
Object
- Object
- CheckIt::ConfigFiles
- Defined in:
- lib/checkit/config_files.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
Returns the value of attribute io.
Instance Method Summary collapse
-
#initialize(io) ⇒ ConfigFiles
constructor
A new instance of ConfigFiles.
- #perform_checks ⇒ Object
Constructor Details
#initialize(io) ⇒ ConfigFiles
Returns a new instance of ConfigFiles.
6 7 8 |
# File 'lib/checkit/config_files.rb', line 6 def initialize(io) self.io = io end |
Instance Attribute Details
#io ⇒ Object
Returns the value of attribute io.
4 5 6 |
# File 'lib/checkit/config_files.rb', line 4 def io @io end |
Instance Method Details
#perform_checks ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/checkit/config_files.rb', line 10 def perform_checks if File.directory?('config') check_unmatched_example_files else io.puts colorize(:help, 'No config directory') end end |