Sha256: 0b9db361ca8f3bed4a466c0ff0a0ed3f01e8dde4dc8452fff3f326171f1e4643

Contents?: true

Size: 933 Bytes

Versions: 1

Compression:

Stored size: 933 Bytes

Contents

def git_commit message
  git add: '-A'
  git commit: "-a -m '#{message}'"
end

def root
  @root ||= File.expand_path File.dirname __FILE__
end

def read_template *path
  File.read File.join root, "templates", *path
end

def perform task
  eval File.read File.join root, "templates", "#{task}.rb"
end

perform :git_init
perform :change_source
perform :install_gems
perform :bundle_install
perform :add_gitignore
# perform :stop_robots # stop google
perform :config_timezone
perform :config_scaffold
perform :serve_static
perform :database_example
perform :figaro
perform :sidekiq
perform :simple_form
perform :rails_layout
perform :rspec
perform :guard
perform :static_pages
perform :devise
perform :skeleton
perform :user
# perform :ldap # who needs this
perform :controller_helpers
perform :authentication_token
perform :rolify
perform :authorization
perform :seeds
perform :resources
git_commit "project created"
perform :run_test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
crosstie-0.0.2 lib/crosstie/base.rb