Sha256: b6e2af7bb3791d2d51e7d31d2b29a41c9b7213a85e007fee17d87826e7093488
Contents?: true
Size: 505 Bytes
Versions: 125
Compression:
Stored size: 505 Bytes
Contents
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
125 entries across 125 versions & 1 rubygems