11: def routines
12: if @@config.nil? || @@config.empty?
13: return if @@global.quiet
14: raise Rudy::NoConfig
15: end
16:
17: if @option.all
18: routine = @@config.routines
19: else
20: routine = {}
21: routine.merge! @@config.routines.find_deferred(@@global.environment, @@global.role) || {}
22: routine.merge! @@config.routines.find(@@global.role) || {}
23:
24:
25:
26:
27:
28:
29:
30:
31:
32: end
33:
34: outform = @@global.format == :json ? :to_json : :to_yaml
35:
36: li routine.to_hash.send(outform)
37: end