Class: RSGem::Tasks::IgnoreGemfileLock
- Defined in:
- lib/rsgem/tasks/ignore_gemfile_lock.rb
Overview
Gemfile.lock should be gitignored when developing gems
Constant Summary collapse
- OUTPUT =
OutputStruct.new(name: 'Ignore gemfile.lock')
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Methods included from Output
Constructor Details
This class inherits a constructor from RSGem::Tasks::Base
Instance Method Details
#perform ⇒ Object
13 14 15 16 |
# File 'lib/rsgem/tasks/ignore_gemfile_lock.rb', line 13 def perform gitignore << "\nGemfile.lock\n" write_to_gitignore end |