From b5d14e3291a3b20f004d881836a2a42cb129f898 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 2 Oct 2018 15:45:48 -0700 Subject: No need for the verbose warning --- lib/tasks/actiontext.rake | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/tasks/actiontext.rake') diff --git a/lib/tasks/actiontext.rake b/lib/tasks/actiontext.rake index e73ed34691..d451b0fec1 100644 --- a/lib/tasks/actiontext.rake +++ b/lib/tasks/actiontext.rake @@ -17,9 +17,7 @@ namespace :action_text do STYLESHEET_APP_PATH = Rails.root.join("app/assets/stylesheets/actiontext.css") task :copy_stylesheet do - if File.exist?(STYLESHEET_APP_PATH) - puts "Won't copy Action Text stylesheet as it already exists" - else + unless File.exist?(STYLESHEET_APP_PATH) FileUtils.cp STYLESHEET_TEMPLATE_PATH, STYLESHEET_APP_PATH end end @@ -29,9 +27,7 @@ namespace :action_text do FIXTURE_APP_PATH = FIXTURE_APP_DIR_PATH.join("rich_texts.yml") task :copy_fixtures do - if File.exist?(FIXTURE_APP_PATH) - puts "Won't copy Action Text fixtures as it already exists" - else + unless File.exist?(FIXTURE_APP_PATH) FileUtils.mkdir FIXTURE_APP_DIR_PATH FileUtils.cp FIXTURE_TEMPLATE_PATH, FIXTURE_APP_PATH end -- cgit v1.2.3