Sha256: 0b0f87472138401ddd7daaa4ceb529a752d56317cde843f1fb42e27daa90b42d
Contents?: true
Size: 610 Bytes
Versions: 2
Compression:
Stored size: 610 Bytes
Contents
require "copypasta/version" require "copypasta/plan" module Copypasta def self.apply(plan_directory:, destination_directory:, parameters:, interactive: false, force: false) plan_directory = File.expand_path(plan_directory) destination_directory = File.expand_path(destination_directory) plan = Copypasta::Plan.from_directory(plan_directory) full_parameters = if interactive plan.interrogate(parameters) else parameters end plan.apply(full_parameters, destination_directory, force: force) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
copypasta-0.1.1 | lib/copypasta.rb |
copypasta-0.1.0 | lib/copypasta.rb |