Class: Pah::Templates::Readme
- Inherits:
-
Pah::Template
- Object
- Rails::Generators::Base
- Pah::Template
- Pah::Templates::Readme
- Defined in:
- lib/pah/templates/readme.rb
Instance Method Summary collapse
Methods inherited from Pah::Template
#ask_unless_test, #copy_static_file, #git_commit, #static_files, #will_you_like_to?
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/pah/templates/readme.rb', line 4 def call copy_static_file 'README.md' gsub_file 'README.md', /PROJECT/, Pah.configuration.app_name gsub_file 'README.md', /RUBY_VERSION/, RUBY_VERSION git add: 'README.md' git_commit 'Add README file.' end |