aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/safe-rm.rb
blob: ee77bb2523d1af569c92ba79fc9fd6070ebdeb74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class SafeRm < Formula
  homepage "https://launchpad.net/safe-rm"
  url "https://launchpad.net/safe-rm/trunk/0.10/+download/safe-rm-0.10.tar.gz"
  sha1 "6b829ae68e1fa3c8016e15ab37fcc08caef7712f"

  head "https://gitorious.org/safe-rm/mainline.git"

  def install
    bin.install "safe-rm"
  end

  test do
    file = "a-file"
    touch file
    system "#{bin}/safe-rm", file
    assert !File.exist?(file)
  end
end