Permalink
Browse files

Point to rake local:setup to get started

git-svn-id: svn+ssh://rubyforge.org/var/svn/compositekeys/trunk@106 c9d88e0a-f118-0410-93d6-eb14a717986d
  • Loading branch information...
1 parent f729e35 commit cc469622563087619ea3aca4bb597b249d729e13 nicwilliams committed Aug 16, 2007
Showing with 5 additions and 4 deletions.
  1. +5 −4 loader.rb
View
9 loader.rb
@@ -1,6 +1,6 @@
# Load local config files in /local
begin
- local_file_supported = %w[paths tasks database_connections]
+ local_file_supported = Dir[File.join(PROJECT_ROOT, 'local/*.sample')].map { |path| File.basename(path).sub(".sample","") }
local_file_supported.each do |file|
require "local/#{file}"
end
@@ -9,10 +9,11 @@
This Gem supports local developer extensions in local/ folder.
Supported files:
#{local_file_supported.map { |f| "local/#{f}"}.join(', ')}
- Samples available:
- #{local_file_supported.map { |f| "cp local/#{f}.rb.sample local/#{f}.rb"}.join("\n ")}
- Current error: #{$!}
+ Setup default sample files:
+ rake local:setup
+
+ Current warning: #{$!}
EOS
end

0 comments on commit cc46962

Please sign in to comment.