You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: dockerfile_generator.rb
    path of file: ./repos/dockerfile-rails/lib/generators
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "erb"
require "json"
require_relative "../dockerfile-rails/scanner.rb"

class DockerfileGenerator < Rails::Generators::Base
    
  def procfile
    if using_passenger?
      {
        nginx: "nginx"
      }
    elsif options.nginx?
      {
        nginx: '/usr/sbin/nginx -g "daemon off;"',
        rails: "./bin/rails server -p 3001"
      }
    else
      {
        rails: "./bin/rails server"
      }
    end