Sha256: a08cdd869e2d9238c233f1eb75af7c62ea0a050d12cc0c4081157ada769ef673
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
require 'fileutils' module WtfplInit class Cli DEFAULT_LICENSE_FILE_NAME = 'LICENSE.md' def run(license_file = DEFAULT_LICENSE_FILE_NAME) File.open(license_file, File::CREAT|File::EXCL|File::WRONLY, 0644) do |f| f.write(WtfplInit.fetch) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wtfpl_init-0.1.0 | lib/wtfpl_init/cli.rb |