File: Guardfile

package info (click to toggle)
ruby-http-2 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,384 kB
  • sloc: ruby: 5,399; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 446 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
guard :process, name: 'HTTP/2 Server', command: 'ruby example/server.rb', stop_signal: 'TERM' do
  watch(%r{^example/(.+)\.rb$})
  watch(%r{^lib/http/2/(.+)\.rb$})

  watch('Gemfile.lock')
end

def h2spec
  puts 'Starting H2 Spec'
  sleep 0.7
  system '~/go-workspace/bin/h2spec -p 8080 -o 1 -s 4.2'
  puts "\n"
end

guard :shell, name: 'H2 Spec' do
  watch(%r{^example/(.+)\.rb$})    { h2spec }
  watch(%r{^lib/http/2/(.+)\.rb$}) { h2spec }
end