Sha256: e2ac355ef1afe9722c994ec56115053e6f0e2491fb7a31b10e5525f0e3237a2d

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

namespace :active_metadata do

  desc "Install the active_metadata gem requirements file ***TASK IS ON ALPHA STAGE***"
  task :install do

    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

3 entries across 3 versions & 1 rubygems

Version Path
active_metadata-0.3.2 lib/rails/railties/tasks.rake
active_metadata-0.3.1 lib/rails/railties/tasks.rake
active_metadata-0.3.0 lib/rails/railties/tasks.rake