Sha256: ef0eb103868a8f95df830d7108948cf209ff913225a5a415ac4eaa684c87a91d

Contents?: true

Size: 318 Bytes

Versions: 3

Compression:

Stored size: 318 Bytes

Contents

require 'rake'

namespace :dad do
  namespace :db do
    
    desc 'database.yml を生成します。'
    task :config do
      @app_name = File.basename(Rails.root)[0..15]

      template File.join(File.dirname(__FILE__), 'db/database.yml.erb')
      render template, :to => 'config/database.yml'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
daddy-0.4.1 lib/tasks/db_config.rake
daddy-0.4.0 lib/tasks/db_config.rake
daddy-0.3.38 lib/tasks/db_config.rake