class Schienenzeppelin::AppBuilder

Public Instance Methods

bin() click to toggle source
Calls superclass method
# File lib/schienenzeppelin/app_builder.rb, line 5
def bin
  super
  template 'bin/setup.erb', 'bin/setup', force: true
end
credentials() click to toggle source
Calls superclass method
# File lib/schienenzeppelin/app_builder.rb, line 10
def credentials
  super
  # This sets up credentials using a custom template for both development and production use
  Schienenzeppelin::AddOns::Credentials.apply
end
database_yml() click to toggle source
Calls superclass method
# File lib/schienenzeppelin/app_builder.rb, line 32
def database_yml
  if options[:database] == 'postgresql'
    template 'config/postgresql.yml.erb', 'config/database.yml'
  else
    super
  end
end
gemfile() click to toggle source
# File lib/schienenzeppelin/app_builder.rb, line 24
def gemfile
  template 'Gemfile.erb', 'Gemfile'
end
gitignore() click to toggle source
# File lib/schienenzeppelin/app_builder.rb, line 28
def gitignore
  template '.gitignore.erb', '.gitignore'
end
readme() click to toggle source
# File lib/schienenzeppelin/app_builder.rb, line 16
def readme
  template 'README.md.erb', 'README.md'
end
ruby_version() click to toggle source
# File lib/schienenzeppelin/app_builder.rb, line 20
def ruby_version
  Schienenzeppelin::AddOns::RubyVersion.new(Context.new(options)).apply
end