class Rails::Generators::BenchmarkGenerator

def add_ips_to_gemfile

def add_ips_to_gemfile
  gem(IPS_GEM_NAME, group: [:development, :test])
end

def generate_layout

def generate_layout
  add_ips_to_gemfile unless ips_installed?
  template("benchmark.rb.tt", "script/benchmarks/#{file_name}.rb")
end

def ips_installed?

def ips_installed?
  in_root do
    return File.read("Gemfile").match?(/gem.*\b#{IPS_GEM_NAME}\b.*/)
  end
end