Class: EmberCli::Assets::Paths
- Inherits:
-
Object
- Object
- EmberCli::Assets::Paths
- Defined in:
- lib/ember_cli/assets/paths.rb
Instance Method Summary collapse
- #asset_map ⇒ Object
- #assets ⇒ Object
- #index_html ⇒ Object
-
#initialize(app) ⇒ Paths
constructor
A new instance of Paths.
- #package_json ⇒ Object
Constructor Details
#initialize(app) ⇒ Paths
Returns a new instance of Paths.
4 5 6 |
# File 'lib/ember_cli/assets/paths.rb', line 4 def initialize(app) @app = app end |
Instance Method Details
#asset_map ⇒ Object
12 13 14 |
# File 'lib/ember_cli/assets/paths.rb', line 12 def asset_map Pathname.glob(assets.join("assetMap*.json")).first end |
#assets ⇒ Object
8 9 10 |
# File 'lib/ember_cli/assets/paths.rb', line 8 def assets app.dist_path.join("assets") end |
#index_html ⇒ Object
20 21 22 |
# File 'lib/ember_cli/assets/paths.rb', line 20 def index_html app.dist_path.join("index.html") end |
#package_json ⇒ Object
16 17 18 |
# File 'lib/ember_cli/assets/paths.rb', line 16 def package_json app.root_path.join("package.json") end |