Skip to content

Commit

Permalink
- handle remote usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanel Suurhans committed Sep 8, 2010
1 parent acd0b0e commit 835ab0a
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
5 changes: 4 additions & 1 deletion full.rb
Expand Up @@ -9,4 +9,7 @@
apply "#{@template_path}/layout.rb"
apply "#{@template_path}/bootstrap.rb"
apply "#{@template_path}/capistrano.rb"
apply "#{@template_path}/git.rb"
apply "#{@template_path}/git.rb"

# TODO: resque
# TODO: capistrano recipes
10 changes: 5 additions & 5 deletions gems.rb
Expand Up @@ -8,13 +8,13 @@
"embed_images: off\n\n" +
"javascripts:\n" +
" application:\n" +
" - public/javascripts/jquery/jquery.min.js" +
" - public/javascripts/jquery/jquery.metadata.js" +
" - public/javascripts/rails.js" +
" - public/javascripts/application.js" +
" - public/javascripts/jquery/jquery.min.js\n" +
" - public/javascripts/jquery/jquery.metadata.js\n" +
" - public/javascripts/rails.js\n" +
" - public/javascripts/application.js\n\n" +
"stylesheets:\n" +
" application:\n" +
" - public/stylesheets/reset.css"
" - public/stylesheets/reset.css\n"
end

@use_jammit = true
Expand Down
17 changes: 2 additions & 15 deletions git.rb
@@ -1,20 +1,7 @@
if yes?("Use Git?", :yellow)

create_file ".gitignore" do
"*.DS_Store\n" +
".rvmrc\n" +
".bundle\n" +
".idea/*\n" +
"log/*\n" +
"tmp/*\n" +
"db/schema.rb\n" +
"db/*.sqlite3\n" +
"public/system\n" +
"coverage/*\n" +
"rerun.txt\n" +
"!.gitkeep\n"
end

get "#{File.dirname(__FILE__)}/resources/.gitignore", ".gitignore"

git :init
git :add => "."
git :commit => "-a -m '- initial commit'"
Expand Down
12 changes: 12 additions & 0 deletions resources/.gitignore
@@ -0,0 +1,12 @@
*.DS_Store
.rvmrc
.bundle
.idea/*
log/*
tmp/*
db/schema.rb
db/*.sqlite3
public/system
coverage/*
rerun.txt
!.gitkeep

0 comments on commit 835ab0a

Please sign in to comment.