Class: ConvenientService::Examples::Dry::V1::Gemfile::Services::AssertFileExists
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Dry::V1::Gemfile::Services::AssertFileExists
- Includes:
- DryService::Config
- Defined in:
- lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_exists.rb
Instance Method Summary collapse
Methods included from Config
Instance Method Details
#result ⇒ Object
25 26 27 28 29 |
# File 'lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_exists.rb', line 25 def result return error("File with path `#{path}` does NOT exist") unless ::File.exist?(path) success end |