Module: ScriptFinder
- Defined in:
- lib/script_finder/script_finder.rb
Defined Under Namespace
Classes: Finder
Constant Summary collapse
- DEFAULT_BIN_DIR =
'script'
Class Method Summary collapse
Class Method Details
.find_and_execute(command, bin_dir = nil) ⇒ Object
6 7 8 9 |
# File 'lib/script_finder/script_finder.rb', line 6 def self.find_and_execute(command, bin_dir = nil) command = command.split(' ') if command.is_a?(String) finder = Finder.new(command, bin_dir).execute_command end |