Class: ConvenientService::Examples::Rails::V1::Gemfile::Services::ReplaceFileContent

Inherits:
Object
  • Object
show all
Includes:
RailsService::Config
Defined in:
lib/convenient_service/examples/rails/v1/gemfile/services/replace_file_content.rb

Instance Method Summary collapse

Instance Method Details

#resultObject



22
23
24
25
26
# File 'lib/convenient_service/examples/rails/v1/gemfile/services/replace_file_content.rb', line 22

def result
  ::File.write(path, content)

  success
end