Class: DockerFluentLogger::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/docker-fluent-logger/cli.rb

Instance Method Summary collapse

Instance Method Details

#installObject



6
7
8
9
10
11
12
13
14
# 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