Class: ConvenientService::Examples::Rails::V1::Gemfile::Services::AssertFileExists
- Inherits:
-
Object
- Object
- ConvenientService::Examples::Rails::V1::Gemfile::Services::AssertFileExists
- Includes:
- RailsService::Config
- Defined in:
- lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_exists.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
16 17 18 19 20 |
# File 'lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_exists.rb', line 16 def result return error("File with path `#{path}` does NOT exist") unless ::File.exist?(path) success end |