Sha256: 01fc6944df048ffa37937526d752f06b1397b54410c632bba122535942d9072a

Contents?: true

Size: 336 Bytes

Versions: 73

Compression:

Stored size: 336 Bytes

Contents

require_relative 'task_helper'

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

73 entries across 73 versions & 1 rubygems

Version Path
daddy-0.5.3 lib/tasks/db_config.rake
daddy-0.5.2 lib/tasks/db_config.rake
daddy-0.5.1 lib/tasks/db_config.rake
daddy-0.5.0 lib/tasks/db_config.rake
daddy-0.4.10 lib/tasks/db_config.rake
daddy-0.4.9 lib/tasks/db_config.rake
daddy-0.4.8 lib/tasks/db_config.rake
daddy-0.4.7 lib/tasks/db_config.rake
daddy-0.4.6 lib/tasks/db_config.rake
daddy-0.4.5 lib/tasks/db_config.rake
daddy-0.4.4 lib/tasks/db_config.rake
daddy-0.4.3 lib/tasks/db_config.rake
daddy-0.4.2 lib/tasks/db_config.rake