Sha256: 8b521e52e5fd3e43a9ae1cd7ccd214d4abcb2fdb75dd30260e092ffb01f6d782
Contents?: true
Size: 485 Bytes
Versions: 2
Compression:
Stored size: 485 Bytes
Contents
module Convoy module Setup module Configuration module Locator class ExecutingScriptDirectory < Base def locate location_directory = File.dirname($0) filepath = File.expand_path(File.join(location_directory, filename)) File.exists?(filepath) ? filepath : nil end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
convoy-1.3.2 | lib/convoy/setup/configuration/locator/executing_script_directory.rb |
convoy-1.2.0 | lib/convoy/setup/configuration/locator/executing_script_directory.rb |