Module: Mack::Paths
- Defined in:
- lib/mack-paths.rb
Class Method Summary collapse
-
.app(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app.
-
.app_config(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config/app_config.
-
.config(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config.
-
.controller_helpers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/helpers/controllers.
-
.controllers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/controllers.
-
.db(*files) ⇒ Object
<MACK_PROJECT_ROOT>/db.
-
.functional(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test/functional.
-
.helpers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/helpers.
-
.images(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/images.
-
.initializers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config/initializers.
-
.javascripts(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/javascripts.
-
.layouts(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/views/layouts.
-
.lib(*files) ⇒ Object
<MACK_PROJECT_ROOT>/lib.
-
.log(*files) ⇒ Object
<MACK_PROJECT_ROOT>/log.
-
.migrations(*files) ⇒ Object
<MACK_PROJECT_ROOT>/db/migrations.
-
.models(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/models.
-
.plugins(*files) ⇒ Object
<MACK_PROJECT_ROOT>/vendor/plugins.
-
.public(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public.
-
.root(*files) ⇒ Object
<MACK_PROJECT_ROOT>.
-
.stylesheets(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/stylesheets.
-
.tasks(*files) ⇒ Object
<MACK_PROJECT_ROOT>/lib/tasks.
-
.test(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test.
-
.unit(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test/unit.
-
.vendor(*files) ⇒ Object
<MACK_PROJECT_ROOT>/vendor.
-
.view_helpers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/helpers/controllers.
-
.views(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/views.
Class Method Details
.app(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app
30 31 32 |
# File 'lib/mack-paths.rb', line 30 def self.app(*files) File.join(Mack.root, "app", files) end |
.app_config(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config/app_config
115 116 117 |
# File 'lib/mack-paths.rb', line 115 def self.app_config(*files) File.join(Mack::Paths.config, "app_config", files) end |
.config(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config
110 111 112 |
# File 'lib/mack-paths.rb', line 110 def self.config(*files) File.join(Mack.root, "config", files) end |
.controller_helpers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/helpers/controllers
80 81 82 |
# File 'lib/mack-paths.rb', line 80 def self.controller_helpers(*files) File.join(Mack::Paths.helpers, "controllers", files) end |
.controllers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/controllers
65 66 67 |
# File 'lib/mack-paths.rb', line 65 def self.controllers(*files) File.join(Mack::Paths.app, "controllers", files) end |
.db(*files) ⇒ Object
<MACK_PROJECT_ROOT>/db
100 101 102 |
# File 'lib/mack-paths.rb', line 100 def self.db(*files) File.join(Mack.root, "db", files) end |
.functional(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test/functional
45 46 47 |
# File 'lib/mack-paths.rb', line 45 def self.functional(*files) File.join(Mack::Paths.test, "functional", files) end |
.helpers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/helpers
75 76 77 |
# File 'lib/mack-paths.rb', line 75 def self.helpers(*files) File.join(Mack::Paths.app, "helpers", files) end |
.images(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/images
15 16 17 |
# File 'lib/mack-paths.rb', line 15 def self.images(*files) File.join(Mack::Paths.public, "images", files) end |
.initializers(*files) ⇒ Object
<MACK_PROJECT_ROOT>/config/initializers
120 121 122 |
# File 'lib/mack-paths.rb', line 120 def self.initializers(*files) File.join(Mack::Paths.config, "initializers", files) end |
.javascripts(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/javascripts
20 21 22 |
# File 'lib/mack-paths.rb', line 20 def self.javascripts(*files) File.join(Mack::Paths.public, "javascripts", files) end |
.layouts(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/views/layouts
60 61 62 |
# File 'lib/mack-paths.rb', line 60 def self.layouts(*files) File.join(Mack::Paths.views, "layouts", files) end |
.lib(*files) ⇒ Object
<MACK_PROJECT_ROOT>/lib
90 91 92 |
# File 'lib/mack-paths.rb', line 90 def self.lib(*files) File.join(Mack.root, "lib", files) end |
.log(*files) ⇒ Object
<MACK_PROJECT_ROOT>/log
35 36 37 |
# File 'lib/mack-paths.rb', line 35 def self.log(*files) File.join(Mack.root, "log", files) end |
.migrations(*files) ⇒ Object
<MACK_PROJECT_ROOT>/db/migrations
105 106 107 |
# File 'lib/mack-paths.rb', line 105 def self.migrations(*files) File.join(Mack::Paths.db, "migrations", files) end |
.models(*files) ⇒ Object
<MACK_PROJECT_ROOT>/app/models
70 71 72 |
# File 'lib/mack-paths.rb', line 70 def self.models(*files) File.join(Mack::Paths.app, "models", files) end |
.plugins(*files) ⇒ Object
<MACK_PROJECT_ROOT>/vendor/plugins
130 131 132 |
# File 'lib/mack-paths.rb', line 130 def self.plugins(*files) File.join(Mack::Paths.vendor, "plugins", files) end |
.public(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public
10 11 12 |
# File 'lib/mack-paths.rb', line 10 def self.public(*files) File.join(Mack.root, "public", files) end |
.root(*files) ⇒ Object
<MACK_PROJECT_ROOT>
5 6 7 |
# File 'lib/mack-paths.rb', line 5 def self.root(*files) File.join(Mack.root, files) end |
.stylesheets(*files) ⇒ Object
<MACK_PROJECT_ROOT>/public/stylesheets
25 26 27 |
# File 'lib/mack-paths.rb', line 25 def self.stylesheets(*files) File.join(Mack::Paths.public, "stylesheets", files) end |
.tasks(*files) ⇒ Object
<MACK_PROJECT_ROOT>/lib/tasks
95 96 97 |
# File 'lib/mack-paths.rb', line 95 def self.tasks(*files) File.join(Mack::Paths.lib, "tasks", files) end |
.test(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test
40 41 42 |
# File 'lib/mack-paths.rb', line 40 def self.test(*files) File.join(Mack.root, "test", files) end |
.unit(*files) ⇒ Object
<MACK_PROJECT_ROOT>/test/unit
50 51 52 |
# File 'lib/mack-paths.rb', line 50 def self.unit(*files) File.join(Mack::Paths.test, "unit", files) end |
.vendor(*files) ⇒ Object
<MACK_PROJECT_ROOT>/vendor
125 126 127 |
# File 'lib/mack-paths.rb', line 125 def self.vendor(*files) File.join(Mack.root, "vendor", files) end |