Sha256: 968ce7834d0b63fe81e79d50f29b2b200cb1af48c09fe0c2a9078029d0fa024f

Contents?: true

Size: 352 Bytes

Versions: 20

Compression:

Stored size: 352 Bytes

Contents

# coding: UTF-8

require 'rake'

namespace :dad do
  namespace :db do
    
    desc 'database.yml を生成します。'
    task :config do
      pwd = `pwd`.strip
      command = "APP_NAME=#{File.basename(pwd)} erb -T - #{File.dirname(__FILE__)}/database.yml.erb > config/database.yml"
      puts command
      system("#{command}")
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
daddy-0.1.9 lib/tasks/db_config.rake
daddy-0.1.8 lib/tasks/db_config.rake
daddy-0.1.7 lib/tasks/db_config.rake
daddy-0.1.6 lib/tasks/db_config.rake
daddy-0.1.5 lib/tasks/db_config.rake
daddy-0.1.4 lib/tasks/db_config.rake
daddy-0.1.3 lib/tasks/db_config.rake
daddy-0.1.2 lib/tasks/db_config.rake
daddy-0.1.1 lib/tasks/db_config.rake
daddy-0.1.0 lib/tasks/db_config.rake
daddy-0.0.22 lib/tasks/db_config.rake
daddy-0.0.21 lib/tasks/db_config.rake
daddy-0.0.20 lib/tasks/db_config.rake
daddy-0.0.19 lib/tasks/db_config.rake
daddy-0.0.18 lib/tasks/db_config.rake
daddy-0.0.17 lib/tasks/db_config.rake
daddy-0.0.16 lib/tasks/db_config.rake
daddy-0.0.15 lib/tasks/db_config.rake
daddy-0.0.14 lib/tasks/db_config.rake
daddy-0.0.13 lib/tasks/db_config.rake