Included Modules

Files

Class Index [+]

Quicksearch

Construct::Helpers

Public Instance Methods

create_construct(chdir=true) click to toggle source
    # File lib/construct/helpers.rb, line 17
17:     def create_construct(chdir=true)
18:       path = (Pathname(Construct.tmpdir) + 
19:         "#{CONTAINER_PREFIX}-#{$PROCESS_ID}-#{rand(1_000_000_000)}")
20:       path.mkpath
21:       path.extend(PathExtensions)
22:       path.construct__chdir_default = chdir
23:       path
24:     end
within_construct(chdir=true) click to toggle source
    # File lib/construct/helpers.rb, line 8
 8:     def within_construct(chdir=true)
 9:       container = create_construct(chdir)
10:       container.maybe_change_dir(chdir) do
11:         yield(container)
12:       end
13:     ensure
14:       container.destroy!
15:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.