Class: Convoy::Setup::Configuration::Locator::ExecutingScriptDirectory
- Defined in:
- lib/convoy/setup/configuration/locator/executing_script_directory.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Convoy::Setup::Configuration::Locator::Base
Instance Method Details
#locate ⇒ Object
6 7 8 9 10 |
# File 'lib/convoy/setup/configuration/locator/executing_script_directory.rb', line 6 def locate location_directory = File.dirname($0) filepath = File.(File.join(location_directory, filename)) File.exists?(filepath) ? filepath : nil end |