From 872f1ab0cb879598ae0e8769646f571c10046761 Mon Sep 17 00:00:00 2001 From: elliottcable Date: Sat, 17 May 2008 14:48:57 -0800 Subject: [PATCH] Re-organized the deafult stuff a bit --- lib/git-blog.rb | 6 +++--- {defaults => prepped}/Rakefile.rb | 0 {defaults => prepped/design}/index.haml | 0 {defaults => prepped/design}/main.css | 0 {defaults => prepped/design}/post.haml | 0 defaults/post-recieve => prepped/post-recieve.hook | 0 {defaults => prepped/posts}/.gitignore | 0 {defaults => prepped/posts}/welcome_to_your_git_blog.markdown | 0 8 files changed, 3 insertions(+), 3 deletions(-) rename {defaults => prepped}/Rakefile.rb (100%) rename {defaults => prepped/design}/index.haml (100%) rename {defaults => prepped/design}/main.css (100%) rename {defaults => prepped/design}/post.haml (100%) rename defaults/post-recieve => prepped/post-recieve.hook (100%) rename {defaults => prepped/posts}/.gitignore (100%) rename {defaults => prepped/posts}/welcome_to_your_git_blog.markdown (100%) diff --git a/lib/git-blog.rb b/lib/git-blog.rb index 5d49ad4..f2216ff 100644 --- a/lib/git-blog.rb +++ b/lib/git-blog.rb @@ -16,10 +16,10 @@ task :initialize do mkdir 'posts' mkdir 'design' %w(welcome_to_your_git_blog.markdown .gitignore).each do |file| - cp GitBlog::Location / :defaults / file, 'posts' + cp GitBlog::Location / :prepped / :posts / file, 'posts' end %w(main.css post.haml index.haml).each do |file| - cp GitBlog::Location / :defaults / file, 'design' + cp GitBlog::Location / :prepped / :design / file, 'design' end blog.add @@ -41,7 +41,7 @@ end desc 'Prepare the blog to be served (configures hooks)' task :servable do is_initialized? File.expand_path('.') - cp GitBlog::Location / :defaults / 'post-recieve', '.git' / :hooks + cp GitBlog::Location / :prepped / 'post-recieve.hook', '.git' / :hooks / 'post-recieve' end desc 'Create and open for editing a new post' diff --git a/defaults/Rakefile.rb b/prepped/Rakefile.rb similarity index 100% rename from defaults/Rakefile.rb rename to prepped/Rakefile.rb diff --git a/defaults/index.haml b/prepped/design/index.haml similarity index 100% rename from defaults/index.haml rename to prepped/design/index.haml diff --git a/defaults/main.css b/prepped/design/main.css similarity index 100% rename from defaults/main.css rename to prepped/design/main.css diff --git a/defaults/post.haml b/prepped/design/post.haml similarity index 100% rename from defaults/post.haml rename to prepped/design/post.haml diff --git a/defaults/post-recieve b/prepped/post-recieve.hook similarity index 100% rename from defaults/post-recieve rename to prepped/post-recieve.hook diff --git a/defaults/.gitignore b/prepped/posts/.gitignore similarity index 100% rename from defaults/.gitignore rename to prepped/posts/.gitignore diff --git a/defaults/welcome_to_your_git_blog.markdown b/prepped/posts/welcome_to_your_git_blog.markdown similarity index 100% rename from defaults/welcome_to_your_git_blog.markdown rename to prepped/posts/welcome_to_your_git_blog.markdown -- 2.11.4.GIT