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.9.9 lib/tasks/db_config.rake
daddy-0.9.8 lib/tasks/db_config.rake
daddy-0.9.7 lib/tasks/db_config.rake
daddy-0.9.6 lib/tasks/db_config.rake
daddy-0.9.5 lib/tasks/db_config.rake
daddy-0.9.4 lib/tasks/db_config.rake
daddy-0.9.3 lib/tasks/db_config.rake
daddy-0.9.2 lib/tasks/db_config.rake
daddy-0.9.1 lib/tasks/db_config.rake
daddy-0.9.0 lib/tasks/db_config.rake
daddy-0.8.1 lib/tasks/db_config.rake
daddy-0.8.0 lib/tasks/db_config.rake
daddy-0.7.9 lib/tasks/db_config.rake
daddy-0.7.8 lib/tasks/db_config.rake
daddy-0.7.7 lib/tasks/db_config.rake
daddy-0.7.6 lib/tasks/db_config.rake
daddy-0.7.5 lib/tasks/db_config.rake
daddy-0.7.4 lib/tasks/db_config.rake
daddy-0.7.3 lib/tasks/db_config.rake
daddy-0.7.2 lib/tasks/db_config.rake