Sha256: 596d93238d9e457d03cbe968762ef306587b4f7f1bdbec9d922a98996a607e97
Contents?: true
Size: 404 Bytes
Versions: 3
Compression:
Stored size: 404 Bytes
Contents
require 'thor' module DockerFluentLogger class CLI < Thor desc 'install', 'Install file' 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
docker-fluent-logger-1.0.2 | lib/docker-fluent-logger/cli.rb |
docker-fluent-logger-1.0.1 | lib/docker-fluent-logger/cli.rb |
docker-fluent-logger-1.0.0 | lib/docker-fluent-logger/cli.rb |