Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/rails_icons/sync/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def sync
def clone_repository
raise "[Rails Icons] Failed to clone repository" unless system("git clone '#{@library[:url]}' '#{@temp_directory}'")

say "[Rails Icons] '#{@name}' repository cloned successfully."
say "[Rails Icons] '#{@name}' repository cloned"
end

def process_variants = Sync::ProcessVariants.new(@temp_directory, @name, @library).process
Expand All @@ -49,7 +49,7 @@ def remove_non_svg_files
.select { _1.file? && _1.extname != ".svg" }
.each(&:delete)

say "[Rails Icons] Non-SVG files removed successfully"
say "[Rails Icons] Non-SVG files removed"
end

def move_library
Expand All @@ -58,7 +58,7 @@ def move_library
FileUtils.mkdir_p(destination)
FileUtils.mv(Dir.glob("#{@temp_directory}/*"), destination, force: true)

say "[Rails Icons] Synced '#{@name}' library successfully #{%w[😃 🎉 ✨].sample}", :green
say "[Rails Icons] Synced '#{@name}' library #{%w[😃 🎉 ✨].sample}", :green
end

def purge_temp_directory = FileUtils.rm_rf(TEMP_DIRECTORY)
Expand Down