Class: Deadfire::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/deadfire/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
15
16
# File 'lib/deadfire/configuration.rb', line 8

def initialize
  @directories = []
  @root_path = ""
  @compressed = false
  @logger = Logger.new(STDOUT, level: :warn)
  @supressed = true
  @excluded_files = []
  @asset_registry = AssetRegistry.new
end

Instance Attribute Details

#asset_registryObject (readonly)

Returns the value of attribute asset_registry.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def asset_registry
  @asset_registry
end

#compressedObject

Returns the value of attribute compressed.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def compressed
  @compressed
end

#directoriesObject (readonly)

Returns the value of attribute directories.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def directories
  @directories
end

#excluded_filesObject

Returns the value of attribute excluded_files.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def excluded_files
  @excluded_files
end

#loggerObject

Returns the value of attribute logger.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def logger
  @logger
end

#root_pathObject

Returns the value of attribute root_path.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def root_path
  @root_path
end

#supressedObject

Returns the value of attribute supressed.



6
7
8
# File 'lib/deadfire/configuration.rb', line 6

def supressed
  @supressed
end

Instance Method Details

#preprocess(*mixins, path: "*") ⇒ Object



43
44
45
# File 'lib/deadfire/configuration.rb', line 43

def preprocess(*mixins, path: "*")
  @asset_registry.register_path(path, *mixins)
end