Class: GoodData::LCM2::Help
- Inherits:
-
BaseAction
- Object
- BaseAction
- GoodData::LCM2::Help
- Defined in:
- lib/gooddata/lcm/actions/help.rb
Overview
Action responsible for printing bricks help
Constant Summary collapse
- DESCRIPTION =
'Print Help Message'
- PARAMS =
{}
- BRICK_PIPELINE_SUFFIX =
/_brick_pipeline$/
Constants inherited from BaseAction
BaseAction::FAILED_CLIENTS, BaseAction::FAILED_PROJECTS, BaseAction::FAILED_SEGMENTS, BaseAction::SYNC_FAILED_LIST
Constants included from Dsl::Dsl
Dsl::Dsl::DEFAULT_OPTS, Dsl::Dsl::TYPES
Class Method Summary collapse
Methods inherited from BaseAction
add_failed_client, add_failed_project, add_failed_segment, add_new_clients_to_project_client_mapping, check_params, collect_synced_status, continue_on_error, print_result, process_failed_project, process_failed_projects, sync_failed_client, sync_failed_project, sync_failed_segment, without_check
Methods included from Dsl::Dsl
#define_params, #define_type, #process
Class Method Details
.call(_params) ⇒ Object
27 28 29 |
# File 'lib/gooddata/lcm/actions/help.rb', line 27 def call(_params) { results: create_help } end |
.create_help ⇒ Object
20 21 22 23 24 25 |
# File 'lib/gooddata/lcm/actions/help.rb', line 20 def create_help GoodData::Bricks::Pipeline.methods .grep(BRICK_PIPELINE_SUFFIX) .map { |method| method.to_s.sub(BRICK_PIPELINE_SUFFIX, '') } .map { |available_brick| { available_brick: available_brick } } end |