Module: Buildr

Defined in:
lib/lock_jar/buildr.rb,
lib/lock_jar/buildr.rb

Defined Under Namespace

Modules: LockJar Classes: Project

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.global_lockjar_dslObject

Returns the value of attribute global_lockjar_dsl


22
23
24
# File 'lib/lock_jar/buildr.rb', line 22

def global_lockjar_dsl
  @global_lockjar_dsl
end

Class Method Details

.project_to_lockfile(project) ⇒ Object


24
25
26
# File 'lib/lock_jar/buildr.rb', line 24

def project_to_lockfile(project)
  "#{project.name.tr(':', '-')}.lock"
end

Instance Method Details

#lock_jar(&blk) ⇒ Object


29
30
31
# File 'lib/lock_jar/buildr.rb', line 29

def lock_jar(&blk)
  Buildr.global_lockjar_dsl = ::LockJar::Domain::Dsl.create(&blk)
end