Sha256: d75a7b2c35c4d2e8deee993db8a96c917f3e871bc654175da7fc29b86e957473
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
module Sprinkle module Verifiers module Symlink Sprinkle::Verify.register(Sprinkle::Verifiers::Symlink) def has_symlink(symlink, file = nil) if file.nil? @commands << "test -L #{symlink}" else @commands << "test '#{file}' = `readlink #{symlink}`" end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
auser-sprinkle-0.1.5 | lib/sprinkle/verifiers/symlink.rb |
mitchellh-sprinkle-0.1.5 | lib/sprinkle/verifiers/symlink.rb |