migrating 'source' and 'sass'

This commit is contained in:
Parker Moore 2013-01-06 01:19:22 -05:00
parent d5e43b501f
commit 9b599404c7

View File

@ -86,6 +86,12 @@ begin
f.write(deploy_configs.to_yaml) f.write(deploy_configs.to_yaml)
end end
# migrate old source to new
FileUtils.mv old_octo_dir("source"), new_octo_dir
# migrate old sass to new
FileUtils.mv old_octo_dir("sass"), new_octo_dir
# migrate custom themes # migrate custom themes
custom_themes = Dir.glob(old_octo_dir('.themes', '*')).delete_if { |theme| theme =~ /\.themes\/classic/ } custom_themes = Dir.glob(old_octo_dir('.themes', '*')).delete_if { |theme| theme =~ /\.themes\/classic/ }
FileUtils.cp_r custom_themes, new_octo_dir('.themes') FileUtils.cp_r custom_themes, new_octo_dir('.themes')