class EmbryoGenerator

Public Instance Methods

install(force: false, bundle: false) click to toggle source
# File lib/generators/embryo.rb, line 13
def install(force: false, bundle: false)
  invoke "embryo:rspec"
  invoke "embryo:factory_girl"
  invoke "embryo:capybara"
  invoke "embryo:poltergeist"
  invoke "embryo:template_support"
  invoke "embryo:default_view"
  invoke "embryo:devise"
  invoke "embryo:application"
  invoke "embryo:postgres"
  clean_files
end

Private Instance Methods

clean_files() click to toggle source
# File lib/generators/embryo.rb, line 28
def clean_files
  gsub_file "Gemfile", /^#.*$/, "", verbose: false
  gsub_file "Gemfile", /\n\n+/, "\n", verbose: false
  append_to_file "Gemfile", "\n\n"
end