Sha256: ffd58d7a55b040c62489c20d3d688f02e02ed0c45d09225f858059d6e5703fdc

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

class <%= class_name %>::Configuration
  attr_accessor <%= initialize_signatures.join(', ') %>

  def initialize
    @path = ''
    @logger = ::Logger.new(Rails.env.development? ? $stdout : 'log/<%=file_name %>.log')
  end

  def url
    raise "No given host to #{self.class.name}" unless host

    https = ssl.presence || true

    "URI::HTTP#{https.to_b ? 'S' : ''}".build(host:, path: [path, version].join('/'))
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kapellmeister-0.1.0 lib/generators/kapellmeister/templates/lib/third_party/configuration.rb.tt
kapellmeister-0.0.2 lib/generators/kapellmeister/templates/lib/third_party/configuration.rb.tt