Class: XRay::CMDRunner
- Inherits:
-
Object
- Object
- XRay::CMDRunner
- Defined in:
- lib/cmd_runner.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.run ⇒ Object
78 79 80 |
# File 'lib/cmd_runner.rb', line 78 def self.run self.new.run end |
Instance Method Details
#run ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/cmd_runner.rb', line 82 def run , files = XRay::CMDOptions.parse ARGV @core_runner = XRay::Runner.new() unless files.empty? files.each do |file| check_file file, end else method = [:type] ? :"check_#{[:type]}" : :check print @core_runner.send(method, [:text].utf8!), end end |