| Conditions | 2 |
| Total Lines | 11 |
| 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 | @break_on_failure = options[:break_on_failure] |
||
| 15 | @break_on_failure = true if break_on_failure.nil? |
||
| 16 | @commands = options.fetch('commands') do |
||
| 17 | raise InvalidGroupError, "Commands not provided for group '#{group_name}'" |
||
| 18 | end |
||
| 19 | end |
||
| 32 |