Method: MJML.find_executable

Defined in:
lib/mjml.rb

.find_executableObject



35
36
37
38
39
# File 'lib/mjml.rb', line 35

def self.find_executable
  local_path = File.expand_path('node_modules/.bin/mjml', Dir.pwd)
  return local_path if File.file?(local_path)
  `/usr/bin/env bash -c "which mjml"`.strip
end