Skip to content
This repository has been archived by the owner on Jan 23, 2018. It is now read-only.

Commit

Permalink
Toss up an abort message if Manifest.txt doesn't already exist in the
Browse files Browse the repository at this point in the history
rails app. Long term, we should probably help the user out with
generating it but for these alpha versions, this should be okay.
  • Loading branch information
jmhodges committed Mar 27, 2009
1 parent fcdee8c commit 85791a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/harker/gemify.rb
Expand Up @@ -28,7 +28,11 @@ def self.gemify(rails_root)

lib = "# Allow rubygems to load this app
require File.dirname(__FILE__) + '/../config/environment'"


unless File.exist?(rails_root + '/Manifest.txt')
abort "Create a Manifest.txt with a list of the files from your Rails app that you'd like to package"
end

File.open(rails_root + '/Rakefile', 'a') { |fp| fp.puts hoe }
puts "Added hoe block to Rakefile."
FileUtils.mkdir_p(rails_root + '/bin')
Expand Down

0 comments on commit 85791a8

Please sign in to comment.