Class: Sambot::Domain::Common::FileChecker
- Inherits:
-
Object
- Object
- Sambot::Domain::Common::FileChecker
- Defined in:
- lib/sambot/domain/common/file_checker.rb
Instance Method Summary collapse
Instance Method Details
#update(files) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/sambot/domain/common/file_checker.rb', line 11 def update(files) return unless files files.each do |filename| update_template(filename) end end |
#verify(path) ⇒ Object
6 7 8 9 |
# File 'lib/sambot/domain/common/file_checker.rb', line 6 def verify(path) return if File.exist?(path) || Dir.exist?(path) raise ApplicationException, "The file or directory #{path} was not found in the current directory." end |