Module: DependencyWiring::DSL

Included in:
Configuration
Defined in:
lib/dependency_wiring/dsl.rb

Instance Method Summary collapse

Instance Method Details

#depsObject



13
14
15
# File 'lib/dependency_wiring/dsl.rb', line 13

def deps
  @deps
end

#git(src, dest, opts = {}) ⇒ Object



25
26
27
# File 'lib/dependency_wiring/dsl.rb', line 25

def git(src,dest, opts={})
  @deps << Git.new(src, dest, opts)
end

#hg(src, dest, opts = {}) ⇒ Object



21
22
23
# File 'lib/dependency_wiring/dsl.rb', line 21

def hg(src,dest, opts={})
  @deps << Mercurial.new(src, dest, opts)
end

#initObject



9
10
11
# File 'lib/dependency_wiring/dsl.rb', line 9

def init
  @deps = []
end

#mount(src, dest) ⇒ Object



17
18
19
# File 'lib/dependency_wiring/dsl.rb', line 17

def mount(src, dest)
  @deps << MountPoint.new(src, dest)      
end