Method: PDK::Util.module_root
- Defined in:
- lib/pdk/util.rb
.module_root ⇒ String?
Returns path to the root of the module being worked on.
122 123 124 125 126 127 128 129 130 131 |
# File 'lib/pdk/util.rb', line 122 def module_root = find_upwards('metadata.json') if File.dirname() elsif in_module_root? Dir.pwd else nil end end |