Skip to content

Commit

Permalink
Use puts instead of p
Browse files Browse the repository at this point in the history
  • Loading branch information
naokazuterada committed May 26, 2020
1 parent 33ca245 commit b4aff90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,21 @@
# activate :minify_javascript

before_build do
p ':::before_build:::'
puts ':::before_build:::'
# avoid losting old deploy history by force push
if Dir.exist?('build')
Dir.chdir 'build'
system 'git branch -u origin/production production'
system 'git pull origin'
Dir.chdir '..'
else
p 'There isn\'t build dir yet, so do nothing.'
puts 'There isn\'t build dir yet, so do nothing.'
end
end

after_build do
p ':::after_build:::'
p "delete #{GENERAL_CSS_DIR}"
puts ':::after_build:::'
puts "delete #{GENERAL_CSS_DIR}"
system "rm -rf #{GENERAL_CSS_DIR}"
end
end
Expand Down

0 comments on commit b4aff90

Please sign in to comment.