Skip to content

Commit

Permalink
Added warning if a Gemfile already exists when generator generator is…
Browse files Browse the repository at this point in the history
… run
  • Loading branch information
lukebayes committed Jan 2, 2011
1 parent f35cc62 commit aa4a49e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/sprout/generators/generator/generator_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ def manifest

if !File.exists? 'Gemfile'
template 'Gemfile', 'generator_gemfile'
else
say "[INFO] It seems you already have a Gemfile in this project, please be sure it has the following content:"
say ''
say ' gem "sprout", ">= #{Sprout::VERSION::STRING}"'
say ''
say ' group :development do'
say ' gem "shoulda"'
say ' gem "mocha"'
say ' end'
say ''
end
end

Expand Down

0 comments on commit aa4a49e

Please sign in to comment.