Sha256: 416c686e2d7d1f8866ee9e0e45f79d5b0258711e067ccc7bd1df51a7074999f8

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'
require 'ruby_git_crypt'

module RakeGitCrypt
  module Tasks
    class Unlock < RakeFactory::Task
      default_name :unlock
      default_description 'Unlock git-crypt.'

      parameter :key_path

      action do
        puts('Unlocking git-crypt...')
        RubyGitCrypt.unlock(
          key_path: key_path
        )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rake_git_crypt-0.1.0.pre.13 lib/rake_git_crypt/tasks/unlock.rb
rake_git_crypt-0.1.0.pre.12 lib/rake_git_crypt/tasks/unlock.rb
rake_git_crypt-0.1.0.pre.11 lib/rake_git_crypt/tasks/unlock.rb
rake_git_crypt-0.1.0.pre.10 lib/rake_git_crypt/tasks/unlock.rb
rake_git_crypt-0.1.0.pre.9 lib/rake_git_crypt/tasks/unlock.rb
rake_git_crypt-0.1.0.pre.8 lib/rake_git_crypt/tasks/unlock.rb