Class: GitLab::CI::Lint::System
- Inherits:
-
Object
- Object
- GitLab::CI::Lint::System
- Defined in:
- lib/gitlab/ci/lint/system.rb
Instance Method Summary collapse
Instance Method Details
#file_exist?(file, message) ⇒ Boolean
5 6 7 8 9 10 |
# File 'lib/gitlab/ci/lint/system.rb', line 5 def file_exist? file, unless file $stderr.puts("#{}") return 1 end end |
#file_is_readable?(file, message) ⇒ Boolean
12 13 14 15 16 17 |
# File 'lib/gitlab/ci/lint/system.rb', line 12 def file_is_readable? file, unless File.readable?(file) $stderr.puts("#{}") return 1 end end |