lib/roro/configurators/validator.rb
## TODO: validate ambiguous
# Add validation to ensure story directory has either a) a matching storyfile or b)
# at least one child stack, story, or inflection.
validate ambiguous
Add validation to ensure story directory has either a) a matching storyfile or b)
at least one child stack, story, or inflection.
validate ambiguous Add validation to ensure story directory has either a ) a matching storyfile or b ) at least one child stack story or inflection .
def base_validate(s)
        case
        when stack_is_nil?(s)
          @msg = 'Catalog not present'
        when stack_is_ignored?(s)
          return
        when stack_is_empty?(s)
          @msg = 'Catalog cannot be an empty folder'
        when stack_unpermitted?(s)
          @msg = 'Catalog has unpermitted extension'
        when stack_unrecognized?(s)
          @msg = 'Catalog must be a story, a stack, or an inflection'
        end
      end
def base_validate ( s ) case when stack_is_nil? ( s ) @msg = 'Catalog not present' when stack_is_ignored? ( s ) return when stack_is_empty? ( s ) @msg = 'Catalog cannot be an empty folder' when stack_unpermitted? ( s ) @msg = 'Catalog has unpermitted extension' when stack_unrecognized? ( s ) @msg = 'Catalog must be a story, a stack, or an inflection' end end
TODO: validate ambiguous
Add validation to ensure story directory has either a) a matching storyfile or b)
at least one child stack, story, or inflection.
TODO : validate ambiguous Add validation to ensure story directory has either a ) a matching storyfile or b ) at least one child stack story or inflection .
s
<not_specific>