Sha256: f44b4ae4562b72d5270ee66b430969ebe375d714d76d9b973d88fce814b83044

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

# Rails recipes
namespace :rails do
  
  desc "Create database yaml in shared path" 
  task :setup do    
    
    # Settings
    fetch(:db_name)
    fetch(:db_user)
    fetch(:db_pass)
    
    run "mkdir -p #{shared_path}/config"
    put template.load("rails/database.yml.erb"), "#{shared_path}/config/database.yml"
  end

  desc "Make symlink for database yaml" 
  task :update_code do
    run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" 
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
capitate-0.1.7 lib/recipes/rails.rb