class WtfplInit::Cli
Constants
- DEFAULT_LICENSE_FILE_NAME
Public Instance Methods
run(license_file = DEFAULT_LICENSE_FILE_NAME)
click to toggle source
# File lib/wtfpl_init/cli.rb, line 7 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