Sha256: 4cf2c5ab5c1e730cb6291222ffdcd4ab47ef925054b394b29c2709e7969a74c8

Contents?: true

Size: 514 Bytes

Versions: 11

Compression:

Stored size: 514 Bytes

Contents

# frozen_string_literal: true

require 'rake_factory'
require 'ruby_git_crypt'

module RakeGitCrypt
  module Tasks
    class Lock < RakeFactory::Task
      default_name :lock
      default_description 'Lock git-crypt.'

      parameter :key_name
      parameter :force, default: false
      parameter :all, default: false

      action do
        puts('Locking git-crypt...')
        RubyGitCrypt.lock(
          key_name: key_name,
          force: force,
          all: all
        )
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rake_git_crypt-0.1.0.pre.18 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.17 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.16 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.15 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.14 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.13 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.12 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.11 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.10 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.9 lib/rake_git_crypt/tasks/lock.rb
rake_git_crypt-0.1.0.pre.8 lib/rake_git_crypt/tasks/lock.rb