Sha256: ca20a50b69b2f894d636ca88755677b195e923d266cbf78438f41f3666927016

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

usage "PATH_TO_PLAN [DESTINATION]"

flag :f, :force, "applies plan even to a non-empty directory"

run do |opts, args, cmd|
  unless (1..2).cover?(args.length)
    puts cmd.help
    exit 1
  end

  plan_directory = args[0]
  destination_directory = args[1] || "."

  require "copypasta"

  Copypasta.apply(plan_directory: plan_directory,
                  destination_directory: destination_directory,
                  parameters: {},
                  interactive: true,
                  force: opts[:force])
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
copypasta-0.1.1 lib/copypasta/cli/apply.cli.rb
copypasta-0.1.0 lib/copypasta/cli/apply.cli.rb