lib/workflow_steps.rb
def fetch_economy_setup_config(workflow_kind)
    case workflow_kind
    when GlobalConstant::Workflow.token_deploy
      @step_config = GlobalConstant::WorkflowStatus.economy_setup_step_config
      @group_config = GlobalConstant::WorkflowStatus.economy_setup_group_config
    when GlobalConstant::Workflow.bt_stake_and_mint
      @step_config = GlobalConstant::WorkflowStatus.bt_stake_and_mint_step_config
      @group_config = GlobalConstant::WorkflowStatus.bt_stake_and_mint_group_config
    when GlobalConstant::Workflow.grant_eth_stake_currency
      @step_config = GlobalConstant::WorkflowStatus.grant_eth_stake_currency_step_config
      @group_config = GlobalConstant::WorkflowStatus.grant_eth_stake_currency_group_config
    else
      return error_with_data('l_ws_1',
                             'something_went_wrong',
                             GlobalConstant::ErrorAction.default)
    end
    success
  end
# Fetch step config and group config from YML file
#
# * Author: Ankit
# * Date: 15/01/2019
# * Reviewed By:
#
# @return [Result::Base]
Fetch step config and group config from YML file
Author: Ankit
Date: 15/01/2019
Reviewed By.
Fetch step config and group config from YML file Author : Ankit Date : 15 / 01 / 2019 Reviewed By .
def fetch_economy_setup_config(workflow_kind)
    case workflow_kind
    when GlobalConstant::Workflow.token_deploy
      @step_config = GlobalConstant::WorkflowStatus.economy_setup_step_config
      @group_config = GlobalConstant::WorkflowStatus.economy_setup_group_config
    when GlobalConstant::Workflow.bt_stake_and_mint
      @step_config = GlobalConstant::WorkflowStatus.bt_stake_and_mint_step_config
      @group_config = GlobalConstant::WorkflowStatus.bt_stake_and_mint_group_config
    when GlobalConstant::Workflow.grant_eth_stake_currency
      @step_config = GlobalConstant::WorkflowStatus.grant_eth_stake_currency_step_config
      @group_config = GlobalConstant::WorkflowStatus.grant_eth_stake_currency_group_config
    else
      return error_with_data('l_ws_1',
                             'something_went_wrong',
                             GlobalConstant::ErrorAction.default)
    end
    success
  end
def fetch_economy_setup_config ( workflow_kind ) case workflow_kind when GlobalConstant :: Workflow . token_deploy @step_config = GlobalConstant :: WorkflowStatus . economy_setup_step_config @group_config = GlobalConstant :: WorkflowStatus . economy_setup_group_config when GlobalConstant :: Workflow . bt_stake_and_mint @step_config = GlobalConstant :: WorkflowStatus . bt_stake_and_mint_step_config @group_config = GlobalConstant :: WorkflowStatus . bt_stake_and_mint_group_config when GlobalConstant :: Workflow . grant_eth_stake_currency @step_config = GlobalConstant :: WorkflowStatus . grant_eth_stake_currency_step_config @group_config = GlobalConstant :: WorkflowStatus . grant_eth_stake_currency_group_config else return error_with_data ( 'l_ws_1' , 'something_went_wrong' , GlobalConstant :: ErrorAction . default ) end success end
Fetch step config and group config from YML file
 Author: Ankit
 Date: 15/01/2019
 Reviewed By:
Fetch step config and group config from YML file Author : Ankit Date : 15 / 01 / 2019 Reviewed By :
None
Result::Base
workflow_kind