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
16 17 18 19 20 21 22 23 |
# File 'lib/dugway/cli/validate.rb', line 16 def validate unless theme.valid?(validate_colors: !['skip-color-validation'], validate_layout_attributes: !['skip-layout-attribute-validation']) theme.errors.each { |error| say(error, :red) } say("\nTheme is invalid", :red) exit(1) end say("Theme is valid!", :green) end |