Class: ActiveScripts::Recipes::Rails
- Defined in:
- lib/active_scripts/recipes/rails.rb
Constant Summary
Constants inherited from Base
Base::DATABASES, Base::ENVIRONMENTS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#packages ⇒ Object
INFO: ActiveScripts::Recipes::Rails contains code that retrieves rails related packages.
Methods inherited from Base
Constructor Details
This class inherits a constructor from ActiveScripts::Recipes::Base
Instance Method Details
#packages ⇒ Object
INFO: ActiveScripts::Recipes::Rails contains code that
retrieves rails related packages.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/active_scripts/recipes/rails.rb', line 8 def packages prompt_environment! assert_valid_environment! # Check for non-root user packages = ["homebrew", "rbenv", "ruby_build", "ruby", "rails"] packages.push(find_or_initialize_databases!) case @environment when :staging, :production packages.push("nginx") end return(packages.flatten) end |