Sha256: bec4c2c7fe2590f80b52d457dea08133d1ee78fa5d01901735b6e8e13fe4bf82

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

module GitCompound
  module Command
    module Procedure
      module Element
        # Lock mixin
        #
        module Lock
          def initialize(opts)
            @lock     = GitCompound::Lock.new
            @lock_new = GitCompound::Lock.new.clean

            super
          end

          def locked?
            GitCompound::Lock.exist?
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_compound-0.2.2 lib/git_compound/command/procedure/element/lock.rb
git_compound-0.2.1 lib/git_compound/command/procedure/element/lock.rb
git_compound-0.2.0 lib/git_compound/command/procedure/element/lock.rb