Sha256: 32ccb30707a8760c986af2de20ee71a532293170c3bdd9715cf44f3d4815e286

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

module Bently

  class WelcomeIndex < Recipe

    RAILS_GENERATE = 'bundle exec rails g controller welcome index'
    ROUTES_FILE = 'config/routes.rb'
    GSUB_SEARCH = /#\s*(root :to => 'welcome#index')/
    GSUB_REPLACE = '\1'

    def bake
      command RAILS_GENERATE
      gsub_file ROUTES_FILE, GSUB_SEARCH, GSUB_REPLACE
      super
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bently-0.0.0 lib/bently/recipe/welcome-index.rb