Method: Gjp::KitRunner#find_executable
- Defined in:
- lib/gjp/kit_runner.rb
#find_executable(name) ⇒ Object
finds an executable in a bin/ subdirectory of kit
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/gjp/kit_runner.rb', line 16 def find_executable(name) @project.from_directory do Find.find("kit") do |path| if path =~ /bin\/#{name}$/ log.debug("found #{name} executable: #{path}") return path end end end log.debug("#{name} executable not found") nil end |