Sha256: 9b0ee5de7f27a915fd1d4625641ef9ac6828e4c3b92bf82dd8f86cfe1cd924dd
Contents?: true
Size: 536 Bytes
Versions: 24
Compression:
Stored size: 536 Bytes
Contents
# frozen_string_literal: true require 'knapsack_pro' namespace :knapsack_pro do task :encrypted_branch_names, [:branch] do |_, args| branch = args[:branch] branches = if branch [branch] else KnapsackPro::RepositoryAdapters::GitAdapter.new.branches end branches.each do |branch_name| encrypted_branch = KnapsackPro::Crypto::BranchEncryptor.new(branch_name).call puts "branch: #{branch_name}" puts "encrypted branch: #{encrypted_branch}" puts end end end
Version data entries
24 entries across 24 versions & 1 rubygems