| Conditions | 1 | 
| Total Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| 1 | require "thor/core_ext/hash_with_indifferent_access"  | 
            ||
| 4 | class CommandBuilder  | 
            ||
| 5 | def from_config(config)  | 
            ||
| 6 | config = Thor::CoreExt::HashWithIndifferentAccess.new(config)  | 
            ||
| 7 | klass = Class.new(Thor)  | 
            ||
| 8 | |||
| 9 | build_commands(config[:commands] || [], klass)  | 
            ||
| 10 | build_grups(config[:groups] || [], klass)  | 
            ||
| 11 | |||
| 12 | klass  | 
            ||
| 13 | end  | 
            ||
| 31 |