Module: Benny::Init
- Defined in:
- lib/benny/init.rb
Class Method Summary collapse
Class Method Details
.create(name) ⇒ Object
7 8 9 10 11 |
# File 'lib/benny/init.rb', line 7 def self.create(name) raise ArgumentError, "The dir '#{name}' already exists" if Dir.exist?(name) FileUtils.copy_entry(File.join(__dir__, 'init'), name) end |