Class: DreddHooks::CLI
- Inherits:
-
Object
- Object
- DreddHooks::CLI
- Defined in:
- lib/dredd_hooks/cli.rb
Class Method Summary collapse
Class Method Details
.start(error = STDERR, out = STDOUT, files) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/dredd_hooks/cli.rb', line 6 def self.start(error=STDERR, out=STDOUT, files) # Load all files given on the command-line DreddHooks::FileLoader.load(files) # Run the server out.puts 'Starting Ruby Dredd Hooks Worker...' server = DreddHooks::Server.new(error, out) server.run end |