| Conditions | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | require "thor/core_ext/hash_with_indifferent_access" |
||
| 8 | |||
| 9 | def initialize(group_name, options = {}) |
||
| 10 | options = Thor::CoreExt::HashWithIndifferentAccess.new(options) |
||
| 11 | @command_name = group_name |
||
| 12 | @help = options[:help] || command_name |
||
| 13 | @description = options[:description] || "description not given" |
||
| 14 | @commands = options.fetch('commands') do |
||
| 15 | raise InvalidGroupError, "Commands not provided for group '#{group_name}'" |
||
| 16 | end |
||
| 17 | end |
||
| 30 |