class DockerFluentLogger::CLI

Public Instance Methods

install() click to toggle source
# File lib/docker-fluent-logger/cli.rb, line 6
def install
  current_dir = Pathname(File.dirname(__FILE__))

  src_path = current_dir.join('generator', 'templates', 'lograge.rb')
  dest_path = Pathname('config').join('initializers', 'lograge.rb')

  FileUtils.cp(src_path, dest_path)
  puts "create #{dest_path}"
end