Method: Jets::Commands::Build.shared_files
- Defined in:
- lib/jets/commands/build.rb
.shared_files ⇒ Object
131 132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/jets/commands/build.rb', line 131 def self.shared_files paths = [] expression = "#{Jets.root}app/**/**/*.rb" Dir.glob(expression).each do |path| return false unless File.file?(path) next unless path.include?("app/shared/resources") relative_path = path.sub(Jets.root.to_s, '') # Rids of the Jets.root at beginning paths << relative_path end paths end |