Class: Npm2Rpm::Rpmlintrc
- Inherits:
-
Object
- Object
- Npm2Rpm::Rpmlintrc
- Defined in:
- lib/npm2rpm/rpmlintrc.rb
Instance Method Summary collapse
-
#initialize(name, metadata, options) ⇒ Rpmlintrc
constructor
A new instance of Rpmlintrc.
- #write ⇒ Object
Constructor Details
#initialize(name, metadata, options) ⇒ Rpmlintrc
Returns a new instance of Rpmlintrc.
4 5 6 7 8 |
# File 'lib/npm2rpm/rpmlintrc.rb', line 4 def initialize name, , @name = name = = end |
Instance Method Details
#write ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/npm2rpm/rpmlintrc.rb', line 10 def write File.open("#{@name}-rpmlintrc", "w+") do |f| f.puts "addFilter(\"devel-file-in-non-devel-package .*\")" f.puts "addFilter(\"file-contains-buildroot .*\")" f.puts "addFilter(\"file-contains-date-and-time .*\")" f.puts "addFilter(\"hidden-file-or-dir .*\")" f.puts "addFilter(\"incorrect-fsf-address .*\")" f.puts "addFilter(\"non-executable-script .*\")" f.puts "addFilter(\"backup-file-in-package .*\")" f.puts "addFilter(\"suse-filelist-forbidden-backup-file .*\")" f.puts "addFilter(\"suse-filelist-forbidden .*\")" f.puts "addFilter(\"summary-ended-with-dot .*\")" # f.puts "addFilter(\" .*\")" end end |