Skip to content

Commit

Permalink
[RESOLVED] Added ability use custom parameters in rambaspec #128
Browse files Browse the repository at this point in the history
  • Loading branch information
Beniamin Sarkisyan committed Sep 26, 2016
1 parent d9ccf3f commit bc969a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/generamba/cli/gen_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def gen(module_name, template_name)
module_validator = ModuleValidator.new
module_validator.validate(code_module)

template = ModuleTemplate.new(template_name)
module_info = ModuleInfoGenerator.new(code_module)
template = ModuleTemplate.new(template_name, module_info.scope)

parameters = GenCommandTableParametersFormatter.prepare_parameters_for_displaying(code_module, template_name)
PrintTable.print_values(
Expand Down

0 comments on commit bc969a7

Please sign in to comment.