Sha256: 4ed68d9feb07c76dbe28ff0a301206d17bb30b2045772936fb0c49b97a9f6cfe

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

module ActiveScripts
  module Recipes
    class Rails < ActiveScripts::Recipes::Base

      # INFO: ActiveScripts::Recipes::Rails contains code that
      #   retrieves rails related packages.

      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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_scripts-0.1.0 lib/active_scripts/recipes/rails.rb