Class: Bently::RailsRecipe

Inherits:
RubyRecipe show all
Defined in:
lib/bently/recipe_class/rails.rb

Constant Summary

Constants inherited from RubyRecipe

Bently::RubyRecipe::GEMFILE

Instance Method Summary collapse

Methods inherited from RubyRecipe

#bundle, #gem, #gem_group

Methods inherited from Recipe

#append, breakdown, category, #code, #create, description, homepage, #insert, #modify, #operate, #operations, #prepend, #remove, #requirement, #run, #say, title, #todo, #usage, version, #warn

Instance Method Details

#generate(command) ⇒ Object



5
6
7
# File 'lib/bently/recipe_class/rails.rb', line 5

def generate command
  run "bundle exec rails generate #{command}"
end

#migrateObject



9
10
11
# File 'lib/bently/recipe_class/rails.rb', line 9

def migrate
  run 'bundle exec rake db:migrate'
end