class Renegade::ProtectedFiles
Check protected files
Attributes
protected_files[R]
warnings[R]
Public Class Methods
new()
click to toggle source
# File lib/renegade/protected_files.rb, line 8 def initialize # Instance variables @warnings = [] @protected_files = ['app.config', 'web.config'] end
Public Instance Methods
run(files)
click to toggle source
# File lib/renegade/protected_files.rb, line 14 def run(files) files.each do |file| if @protected_files.include?(File.basename(file).downcase) @warnings.push 'Warning! You are making changes to: ' + file.highlight end end end