class Pwa::AppGenerator

Public Instance Methods

create_files() click to toggle source
# File lib/generators/pwa/app_generator.rb, line 16
def create_files
  @name = options[:name].parameterize.underscore
  template 'manifest.json.erb',
           "app/views/pwa/apps/manifests/_#{@name}.json"
  template 'offline.html.erb',
           "app/views/pwa/apps/offline/_#{@name}.html.erb"
end