Class: NeetoCompliance::SyncNeetoCommons::SyncFormatters
- Inherits:
-
Object
- Object
- NeetoCompliance::SyncNeetoCommons::SyncFormatters
- Defined in:
- lib/neeto_compliance/sync_neeto_commons/sync_formatters.rb
Class Method Summary collapse
Class Method Details
.CONFIG_FILES ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/neeto_compliance/sync_neeto_commons/sync_formatters.rb', line 9 def self.CONFIG_FILES [ ".eslintrc.js", ".eslintignore", ".rubocop.yml", ".prettierrc.js", "cypress-tests/.eslintrc.js", ".erb-lint.yml", ] end |
.process ⇒ Object
20 21 22 23 24 25 |
# File 'lib/neeto_compliance/sync_neeto_commons/sync_formatters.rb', line 20 def self.process self.CONFIG_FILES.each do |file| print "Copying #{file}...\n" system(`cp #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} #{file}`) end end |