Class: Working::PlainInitializer
- Inherits:
-
Initializer
- Object
- Initializer
- Working::PlainInitializer
- Defined in:
- lib/working/init.rb
Constant Summary
Constants inherited from Initializer
Initializer::RAILS_TODO_APOLOGY
Instance Method Summary collapse
-
#initialize ⇒ PlainInitializer
constructor
A new instance of PlainInitializer.
Methods inherited from Initializer
Constructor Details
#initialize ⇒ PlainInitializer
Returns a new instance of PlainInitializer.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/working/init.rb', line 57 def initialize super( 'Gemfile' => [ 'source :rubygems', %{group :development do\n gem 'working'\nend}, ], 'Guardfile' => [ %{require 'working/guard'}, ], 'Rakefile' => [ %{require 'working/rake_tasks'} ], 'test/test_helper.rb' => [ %{# Run this via 'beg'}, %{require 'working/test_helper'}, %{Spork.each_run do\n Dir['lib/**/*.rb'].each{|e| load e}\nend}, %{# Spork.prefork doesn't like when this is missing}, ], 'LICENSE.txt' => [ "Copyleft (ↄ) #{Date.today.year} #{ENV['GIT_AUTHOR_NAME']} — CC0/Public Domain." ] ) end |