Module: GitCompound::Command::Procedure::Element::Lock

Included in:
Build, BuildLock, BuildManifest, Update
Defined in:
lib/git_compound/command/procedure/element/lock.rb

Overview

Lock mixin

Instance Method Summary collapse

Instance Method Details

#initialize(opts) ⇒ Object



8
9
10
11
12
13
# File 'lib/git_compound/command/procedure/element/lock.rb', line 8

def initialize(opts)
  @lock     = GitCompound::Lock.new
  @lock_new = GitCompound::Lock.new.clean

  super
end

#locked?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/git_compound/command/procedure/element/lock.rb', line 15

def locked?
  GitCompound::Lock.exist?
end