aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/cpulimit.rb
blob: 970d5becb92ff20d6b2ba4f2885178cfbf25b050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'formula'

class Cpulimit < Formula
  homepage 'https://github.com/opsengine/cpulimit'
  url 'https://github.com/opsengine/cpulimit/archive/v0.1.tar.gz'
  sha1 'b7c16821a3e04698b79b28905b68b8c518417466'

  head 'https://github.com/opsengine/cpulimit.git'

  def install
    system 'make'
    bin.install 'src/cpulimit'
  end

  test do
    system *%W{#{bin}/cpulimit -l 10 ls}
  end
end