Browse files

migrating 'source' and 'sass'

  • Loading branch information...
1 parent d5e43b5 commit 9b599404c7f14fc37f24f887cfb337d5d47ad38e @parkr parkr committed Jan 6, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 source/downloads/code/migrator.rb
View
6 source/downloads/code/migrator.rb
@@ -86,6 +86,12 @@ def read_yaml(path)
f.write(deploy_configs.to_yaml)
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
custom_themes = Dir.glob(old_octo_dir('.themes', '*')).delete_if { |theme| theme =~ /\.themes\/classic/ }
FileUtils.cp_r custom_themes, new_octo_dir('.themes')

0 comments on commit 9b59940

Please sign in to comment.