Class: Redbreast::Command::ColorTestGenerator
- Inherits:
-
Object
- Object
- Redbreast::Command::ColorTestGenerator
- Includes:
- Helper::General, Helper::Terminal
- Defined in:
- lib/redbreast/commands/color_test_generator.rb
Overview
Class for creating color tests
Constant Summary
Constants included from Helper::General
Helper::General::ESCAPE_KEYWORDS
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Helper::General
#app_name, #bundles, #clean_case_name, #clean_enum_name, #clean_variable_name, #config, #escape_keyword_if_needed, #escape_with_underscore_if_needed, #indent, #programming_language, #upper_camel_case
Methods included from Helper::Terminal
Class Method Details
.init ⇒ Object
8 9 10 |
# File 'lib/redbreast/commands/color_test_generator.rb', line 8 def self.init new.call end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/redbreast/commands/color_test_generator.rb', line 12 def call filtered_bundles = bundles.select { |bundle| bundle[:outputTestPathColors] } return if filtered_bundles.empty? prompt.say('Generating color test resources...') generate_test_sources(bundles, app_name) success('Color test resources generated!') end |