Sha256: c99fd6bb1a6ee35b9f943f3ed6e8193d8c750714e4434fa52aad05f267524afd

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

module Initial
  class DatabaseGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)

    def add
      @name = ask "Type the project's name"
      template 'database/database.yml', 'config/database.yml'
      template 'database/database.yml', 'config/database.yml.example'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teleporter-0.0.27 lib/generators/initial/database.rb
teleporter-0.0.26 lib/generators/initial/database.rb