Method: FluentPluginGenerator::ApacheLicense#initialize

Defined in:
lib/fluent/command/plugin_generator.rb

#initializeApacheLicense

Returns a new instance of ApacheLicense.



320
321
322
323
324
325
326
327
328
329
# File 'lib/fluent/command/plugin_generator.rb', line 320

def initialize
  @text = ""
  @preamble_source = ""
  @preamble = nil
  uri = URI.parse(LICENSE_URL)
  uri.open do |io|
    @text = io.read
  end
  @preamble_source = @text[/^(\s*Copyright.+)/m, 1]
end