Class: Vigilant::CLI
- Inherits:
-
Object
- Object
- Vigilant::CLI
- Defined in:
- lib/vigilant/cli.rb
Class Method Summary collapse
Class Method Details
.gen(file, options) ⇒ Object
3 4 5 |
# File 'lib/vigilant/cli.rb', line 3 def self.gen( file, ) Vigilant.new(file).generate_tests end |
.template(file) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/vigilant/cli.rb', line 7 def self.template( file ) temp = <<-TEMPLATE { "output": "run_tests.c" } TEMPLATE puts "Writing to #{file}" File.open(file, 'w+') do |f| f.write(temp) end end |