Class: Dugway::Cli::Validate
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Dugway::Cli::Validate
- Includes:
- Thor::Actions
- Defined in:
- lib/dugway/cli/validate.rb
Instance Method Summary collapse
Instance Method Details
#validate ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/dugway/cli/validate.rb', line 21 def validate = { validate_colors: !['skip-color-validation'], validate_layout_attributes: !['skip-layout-attribute-validation'], validate_options: !['skip-options-validation'] } unless theme.valid?(**) theme.errors.each { |error| say(error, :red) } say("\nTheme is invalid", :red) exit(1) end say("Theme is valid!", :green) end |