Method: Flydata::Source.command_dir_paths
- Defined in:
- lib/flydata/source.rb
.command_dir_paths ⇒ Object
Returns require-friendly paths to the source specific command directory.
ex) ["flydata/source_mysql/command", "flydata/source_postgres/command"]
52 53 54 55 56 57 58 59 60 61 |
# File 'lib/flydata/source.rb', line 52 def self.command_dir_paths result = [] DATA_ENTRY_TYPE_MAP.values.each do |source_key| path = File.join(source_dir_path(source_key), COMMAND_SUBDIR) if File.exists?(path) result << File.join("flydata", source_key.to_s, COMMAND_SUBDIR) end end result end |