-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfiles.rb
19 lines (17 loc) · 808 Bytes
/
files.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module TessituraPackage
def self.files
Files::FILES
end
module Files
LIB_FILES = Dir.glob('./lib/**/*.rb').sort
CONFIG_FILES = Dir.glob('./config/*').sort
SCRIPT_FILES = Dir.glob('./script/**/*').sort
LOG_FILES = Dir.glob('./log/**/*').sort
BIN_FILES = Dir.glob('./bin/**/*').sort
DB_FILES = [Dir.glob('./db/schema_migrations/*.rb').sort, Dir.glob('./db/*.rb').sort]
TASK_FILES = ['Rakefile', Dir.glob('./tasks/**/*.rake')].flatten.sort
TEST_FILES = [Dir.glob('./spec/**/*.rb'), Dir.glob('./features/**/*')].flatten.sort
BASE_FILES = %w(files.rb Gemfile Vagrantfile config.ru tessitura.gemspec README.rdoc version.rb)
FILES = [LIB_FILES, CONFIG_FILES, SCRIPT_FILES, BIN_FILES, DB_FILES, TASK_FILES, LOG_FILES, TEST_FILES, BASE_FILES].flatten
end
end