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

Version Path
knapsack_pro-5.5.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.4.1 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.4.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.5 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.4 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.3 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.2 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.1 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.3.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.2.1 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.2.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.1.2 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.1.1 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.1.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-5.0.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-4.1.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-4.0.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-3.11.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-3.10.0 lib/tasks/encrypted_branch_names.rake
knapsack_pro-3.9.0 lib/tasks/encrypted_branch_names.rake