Class: Bently::Foreman

Inherits:
RubyRecipe show all
Defined in:
lib/bently/recipe/foreman.rb

Constant Summary

Constants inherited from RubyRecipe

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

Constructor Details

#initializeForeman

Returns a new instance of Foreman.



9
10
11
12
13
14
# File 'lib/bently/recipe/foreman.rb', line 9

def initialize
  append 'Procfile', 'web: bundle exec rails server -p $PORT -e $RACK_ENV'
  run 'gem install foreman'
  run 'echo "RACK_ENV=development" >>.env'
  todo 'foreman start'
end