From ffb1c65b0ba7fa8a4ea7e128cb47449f04837869 Mon Sep 17 00:00:00 2001 From: James Edwards-Jones Date: Thu, 15 Mar 2018 00:04:43 +0000 Subject: [PATCH] Rename Lfs::FileModificationHandler to Lfs::FileTransformer --- app/services/files/create_service.rb | 2 +- .../lfs/{file_modification_handler.rb => file_transformer.rb} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename app/services/lfs/{file_modification_handler.rb => file_transformer.rb} (97%) diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb index 46acdc5406c..675b05e8fc4 100644 --- a/app/services/files/create_service.rb +++ b/app/services/files/create_service.rb @@ -1,7 +1,7 @@ module Files class CreateService < Files::BaseService def create_commit! - handler = Lfs::FileModificationHandler.new(project, @branch_name) + handler = Lfs::FileTransformer.new(project, @branch_name) handler.new_file(@file_path, @file_content) do |content_or_lfs_pointer| create_transformed_commit(content_or_lfs_pointer) diff --git a/app/services/lfs/file_modification_handler.rb b/app/services/lfs/file_transformer.rb similarity index 97% rename from app/services/lfs/file_modification_handler.rb rename to app/services/lfs/file_transformer.rb index fe9091a6e5d..030f2c6aeba 100644 --- a/app/services/lfs/file_modification_handler.rb +++ b/app/services/lfs/file_transformer.rb @@ -1,5 +1,5 @@ module Lfs - class FileModificationHandler + class FileTransformer attr_reader :project, :branch_name delegate :repository, to: :project