Class: Configuration::OutputStorePath
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize, parse
Class Method Details
.match(node) ⇒ Object
187
188
189
|
# File 'lib/httpimagestore/configuration/output.rb', line 187
def self.match(node)
node.name == 'output_store_path'
end
|
Instance Method Details
#realize(request_state) ⇒ Object
191
192
193
194
195
196
197
198
199
200
201
|
# File 'lib/httpimagestore/configuration/output.rb', line 191
def realize(request_state)
paths = @output_specs.select do |output_spec|
output_spec.included?(request_state)
end.map do |output_spec|
output_spec.store_path(request_state)
end
request_state.output do
write_plain 200, paths
end
end
|