Class: EmberCli::Deploy::File
- Inherits:
-
Object
- Object
- EmberCli::Deploy::File
- Defined in:
- lib/ember_cli/deploy/file.rb
Instance Method Summary collapse
- #index_html ⇒ Object
-
#initialize(app) ⇒ File
constructor
A new instance of File.
- #mountable? ⇒ Boolean
- #to_rack ⇒ Object
Constructor Details
#initialize(app) ⇒ File
Returns a new instance of File.
7 8 9 |
# File 'lib/ember_cli/deploy/file.rb', line 7 def initialize(app) @app = app end |
Instance Method Details
#index_html ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/ember_cli/deploy/file.rb', line 19 def index_html if index_file.exist? index_file.read else check_for_error_and_raise! end end |
#mountable? ⇒ Boolean
11 12 13 |
# File 'lib/ember_cli/deploy/file.rb', line 11 def mountable? true end |
#to_rack ⇒ Object
15 16 17 |
# File 'lib/ember_cli/deploy/file.rb', line 15 def to_rack Rack::File.new(app.dist_path.to_s, rack_headers) end |