Sha256: dbd4f95d9e321dc2d9669fb1d4d9d5026762139e4b917752fc489838837e7cf3

Contents?: true

Size: 807 Bytes

Versions: 1

Compression:

Stored size: 807 Bytes

Contents

TemplateRoot = File.expand_path '..', __FILE__

gem 'capistrano', :group => 'deployment', :git => 'git://github.com/capistrano/capistrano', :ref => 'b31e2f5'
gem 'capistrano-relevance', :group => 'deployment'

gem 'therubyracer', :group => 'assets', :platforms => :ruby

run 'bundle install'
run 'bundle exec capify .'

remove_file File.join('config', 'deploy.rb')
copy_file File.join(TemplateRoot, 'deploy.rb'), File.join('config', 'deploy.rb')

run 'rails generate scaffold user username:string'

next_migration_timestamp = (Time.now + 1)
migration_filename = next_migration_timestamp.utc.strftime("%Y%m%d%H%M%S") + '_add_root_user.rb'
copy_file File.join(TemplateRoot, 'add_root_user.rb'), File.join('db', 'migrate', migration_filename)

git :init
git :add => "."
git :commit => "-a -m 'Initial commit'"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elzar-0.2.0 spec/fixtures/rails_integration_template/template.rb