Sha256: cd138c828bf44bd9f82a37f7a05f88324c9a6c26ff18e64c79a535ffba0c2937

Contents?: true

Size: 690 Bytes

Versions: 6

Compression:

Stored size: 690 Bytes

Contents

require 'rake'
require 'fileutils'

namespace :active_metadata do
  task :install do
    #FileUtils.cp File.expand_path('../../templates/mongoid.yml',__FILE__), File.expand_path('config/')
    #puts "Installed mongoid.yml"

    FileUtils.cp File.expand_path('../../templates/active_metadata.yml',__FILE__), File.expand_path('config/')
    puts "Installed active_metadata.yml"

    puts "Copying migrations"
    ts = Time.now.utc.strftime('%Y%m%d%H%M%S')
    FileUtils.cp File.expand_path('../../templates/active_metadata_migrations',__FILE__), File.expand_path("db/migrate/#{ts}_active_metadata_migrations.rb")
    puts "run rake db:migrate to complete the gem installation"    

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
active_metadata-0.2.4 lib/rake/task.rb
active_metadata-0.2.3 lib/rake/task.rb
active_metadata-0.2.2 lib/rake/task.rb
active_metadata-0.2.1 lib/rake/task.rb
active_metadata-0.2.0 lib/rake/task.rb
active_metadata-0.1.9 lib/rake/task.rb