Roll  Roll

[Validate]
Generated with WebRI Redfish 1.2.1

Roll

Constants

VERSION

Public Class Methods

env(name=nil) click to toggle source

Get environment.

    # File lib/roll.rb, line 8
 8:   def self.env(name=nil)
 9:     if name
10:       env = Environment.new(name)
11:     else
12:       env = Environment.new
13:     end
14:     env
15:   end
in(path, depth=3) click to toggle source

Add path to current environment.

    # File lib/roll.rb, line 37
37:   def self.in(path, depth=3)
38:     env = Environment.new
39: 
40:     lookup = env.lookup
41:     lookup.append(path, depth)
42:     lookup.save
43: 
44:     env.sync
45:     env.save
46: 
47:     return path, lookup.file
48:   end
index(name=nil) click to toggle source
    # File lib/roll.rb, line 17
17:   def self.index(name=nil)
18:     #if name
19:     #  env = Environment.new(name)
20:     #else
21:     #  env = Environment.new
22:     #end
23:     env(name).index.to_s
24:   end
out(path) click to toggle source

Remove path from current environment.

    # File lib/roll.rb, line 52
52:   def self.out(path)
53:     env = Environment.new
54: 
55:     lookup = env.lookup
56:     lookup.delete(path)
57:     lookup.save
58: 
59:     env.sync
60:     env.save
61: 
62:     return path, lookup.file
63:   end
path() click to toggle source

Go thru each roll lib and collect bin paths.

    # File lib/roll.rb, line 67
67:   def self.path
68:     binpaths = []
69:     Library.list.each do |name|
70:       lib = Library[name]
71:       if lib.bindir?
72:         binpaths << lib.bindir
73:       end
74:     end
75:     binpaths
76:   end
sync(name=nil) click to toggle source

Synchronize an environment by name. If a name is not given the current environment is synchronized.

    # File lib/roll.rb, line 29
29:   def self.sync(name=nil)
30:     env = env(name)
31:     env.sync
32:     env.save
33:   end
verify(root=Dir.pwd) click to toggle source

Verify dependencies are in current environment.

    # File lib/roll.rb, line 82
82:   def self.verify(root=Dir.pwd)   
83:     Library.new(root).verify
84:   end

Disabled; run with --debug to generate this.