Class: MetatagCop::Handler
- Inherits:
-
Object
- Object
- MetatagCop::Handler
- Defined in:
- lib/metatag_cop/handler.rb
Class Method Summary collapse
Class Method Details
.execute ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/metatag_cop/handler.rb', line 14 def self.execute file_path = ARGV[0] return print 'Require file path as a first argument.' if file_path.nil? records = MetatagCop::Builders::Csv.build(file_path) MetatagCop::Cops::Cop.new(records).run end |