Classes: Conflict
<<~YAML.freeze hello: desc: A starter task — replace me execute: echo Hello, caml! YAML
Raises:
12 13 14 15 16
# File 'lib/caml/init.rb', line 12 def self.scaffold(path) raise Conflict, "#{path} already exists" if File.exist?(path) File.write(path, TEMPLATE) end