Module: Documentalist::Dependencies::ClassMethods
- Defined in:
- lib/dependencies.rb
Instance Method Summary collapse
- #check_binary_dependency(binary, tip) ⇒ Object
- #check_dependencies ⇒ Object
- #depends_on_binaries!(h) ⇒ Object
Instance Method Details
#check_binary_dependency(binary, tip) ⇒ Object
8 9 10 |
# File 'lib/dependencies.rb', line 8 def check_binary_dependency(binary, tip) puts "Checking for presence of #{binary}... #{`which #{binary}`.empty? ? "Failed, you might want to #{tip}" : "OK"}" end |
#check_dependencies ⇒ Object
12 13 14 |
# File 'lib/dependencies.rb', line 12 def check_dependencies @bin_dependencies.each { |k,v| check_binary_dependency(k,v) } if @bin_dependencies end |
#depends_on_binaries!(h) ⇒ Object
16 17 18 |
# File 'lib/dependencies.rb', line 16 def depends_on_binaries!(h) @bin_dependencies = h end |