Class: ScriptFinder

Inherits:
BaseFinder show all
Defined in:
lib/script_finder/script_finder.rb

Constant Summary

Constants inherited from BaseFinder

BaseFinder::DEFAULT_BIN_DIR

Instance Attribute Summary

Attributes inherited from BaseFinder

#bin_dir, #command

Instance Method Summary collapse

Methods inherited from BaseFinder

find_and_execute, #initialize, running_command_for_current_rails_version?

Constructor Details

This class inherits a constructor from BaseFinder

Instance Method Details

#execute_commandObject



4
5
6
7
8
9
10
11
12
# File 'lib/script_finder/script_finder.rb', line 4

def execute_command
  dir = find_bin_dir

  if dir
    execute_command_if_singleton(find_command_in_dir(dir))
  else
    bin_dir_not_found
  end
end