Class: EmberCli::Deploy::File

Inherits:
Object
  • Object
show all
Defined in:
lib/ember_cli/deploy/file.rb

Instance Method Summary collapse

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_htmlObject



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

Returns:

  • (Boolean)


11
12
13
# File 'lib/ember_cli/deploy/file.rb', line 11

def mountable?
  true
end

#to_rackObject



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