Sha256: 3519c0dec1e09d0da705da2ead12645519efbdc71a6c500d0be45cfbadf130c6
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
class ProjectSettings attr_accessor :project_root, :app_directory, :controller_directory, :model_directory, :view_directory, :log_directory, :config_directory, :template_directory, :script_directory, :database_directory, :public_directory def initialize(root_dir) # Project Specific Paths self.project_root = File.expand_path(root_dir) self.public_directory = File.join(root_dir, "public") self.app_directory = File.join(root_dir, "app") self.controller_directory = File.join(app_directory, "controllers") self.model_directory = File.join(app_directory, "models") self.view_directory = File.join(app_directory, "views") self.log_directory = File.join(project_root, "log") self.config_directory = File.join(project_root, "config") self.script_directory = File.join(project_root, "script") self.database_directory = File.join(project_root, "db") # Gem Specific Paths self.template_directory = File.join("#{File.dirname(__FILE__)}", "templates") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rest_in_peace-0.1.1 | lib/rest_in_peace/project_settings.rb |
rest_in_peace-0.1.0 | lib/rest_in_peace/project_settings.rb |