diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-08-11 19:56:54 -0400 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-08-11 19:56:54 -0400 |
commit | 5958810eb286e914777eac6956f56692fd9e2239 (patch) | |
tree | 4070a527ff399d87d2af637056278050026eb6a3 /Rakefile | |
parent | 313c3859aa07013815c51ae0a4af2e4fbe2ba808 (diff) | |
parent | 2cd05cf2d14e823947ccf56d2a1b43c69e8a8f22 (diff) | |
download | my_new_personal_website-5958810eb286e914777eac6956f56692fd9e2239.tar.xz my_new_personal_website-5958810eb286e914777eac6956f56692fd9e2239.zip |
Merge branch 'master' of github.com:imathis/octopress
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,10 @@ require "rubygems" require "bundler/setup" +# If you customize your site's index page setting custom_index to true +# will preserve your changes when running `rake update_source` +custom_index = false + ## -- Rsync Deploy config -- ## # Be sure your public key is listed in your server's ~/.ssh/authorized_keys file ssh_user = "user@domain.com" @@ -151,6 +155,7 @@ task :update_source, :theme do |t, args| system "mkdir -p #{source_dir}; cp -R #{themes_dir}/"+theme+"/source/. #{source_dir}" system "cp -Rn #{source_dir}.old/. #{source_dir}" system "cp -Rf #{source_dir}.old/_includes/custom/. #{source_dir}/_includes/custom/" + system "cp -Rf #{source_dir}.old/index.html #{source_dir}" if custom_index puts "## Updated #{source_dir} ##" end @@ -252,6 +257,6 @@ end desc "list tasks" task :list do - puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).to_sentence}" + puts "Tasks: #{(Rake::Task.tasks - [Rake::Task[:list]]).join(', ')}" puts "(type rake -T for more detail)\n\n" end |