class Coppy::CLI

Public Class Methods

exit_on_failure?() click to toggle source
# File lib/coppy/cli.rb, line 9
def self.exit_on_failure?
  true
end

Public Instance Methods

copy(template_path, target_path) click to toggle source
# File lib/coppy/cli.rb, line 14
def copy(template_path, target_path)
  Runner.new(template_path, target_path).call
rescue Coppy::Manifesto::InvalidManifesto => e
  say "Failed to load manifesto. #{e.message}"
  exit(1)
end