Class: RSGem::Tasks::IgnoreGemfileLock

Inherits:
Base
  • Object
show all
Defined in:
lib/rsgem/tasks/ignore_gemfile_lock.rb

Overview

Constant Summary collapse

OUTPUT =
OutputStruct.new(name: 'Ignore gemfile.lock')

Instance Attribute Summary

Attributes inherited from Base

#args, #context

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Methods included from Output

#with_output

Constructor Details

This class inherits a constructor from RSGem::Tasks::Base

Instance Method Details

#performObject



13
14
15
16
# File 'lib/rsgem/tasks/ignore_gemfile_lock.rb', line 13

def perform
  gitignore << "\nGemfile.lock\n"
  write_to_gitignore
end