Module: RoughDraft::Actions
- Included in:
- RailsBuilder
- Defined in:
- lib/rough_draft/actions.rb
Instance Method Summary collapse
Instance Method Details
#copy_source_file(source) ⇒ Object
3 4 5 |
# File 'lib/rough_draft/actions.rb', line 3 def copy_source_file(source) copy_file source, source, force: true end |
#git_commit(message, options = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/rough_draft/actions.rb', line 7 def git_commit(, = {}) git :add => '-A' git :reset => '-- config/settings/*' unless [:include_settings] git :commit => "-m '#{}' --quiet --no-status" end |