module GeneratorHelpers

Public Instance Methods

application_name() click to toggle source
# File lib/easy/generators/generator_helpers.rb, line 3
def application_name
  Rails.application.class.name.split("::").first.underscore # surely there's a better way than this
end

Private Instance Methods

bundle_command(command) click to toggle source
# File lib/easy/generators/generator_helpers.rb, line 9
def bundle_command(command)
  # say_status :run, "bundle #{command}"
  # print `"#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" #{command}`
  run("bundle #{command}")
end