aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-10-02 15:45:48 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-10-02 15:45:48 -0700
commitb5d14e3291a3b20f004d881836a2a42cb129f898 (patch)
treedf87d210c2ae8112d6058b2230bd107d1289d5c7 /lib
parent7bbddb01738cd8c2a3bda65d32f30ec5e386b4a9 (diff)
downloadrails-b5d14e3291a3b20f004d881836a2a42cb129f898.tar.gz
rails-b5d14e3291a3b20f004d881836a2a42cb129f898.tar.bz2
rails-b5d14e3291a3b20f004d881836a2a42cb129f898.zip
No need for the verbose warning
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/actiontext.rake8
1 files changed, 2 insertions, 6 deletions
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