Class: Yadecli::Cli::Module

Inherits:
Thor
  • Object
show all
Defined in:
lib/yadecli/cli/module.rb

Overview

Build

Instance Method Summary collapse

Instance Method Details

#install(project_name, *module_names) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/yadecli/cli/module.rb', line 23

def install(project_name, *module_names)
  CliUtil.print_header'YadeCli Install Module',
                      ["Going to install module #{module_names.join(', ')} for Yade project #{project_name}"]

  outcome = Yadecli::Command::Module::ModuleInstallCommand.run(project_name: project_name,
                                                               module_names: module_names, options: options)

  CliUtil.print_command_outcome(outcome)
end

#list(project_name) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/yadecli/cli/module.rb', line 12

def list(project_name)
  CliUtil.print_header'YadeCli List Modules', ["This are the available modules for the Yade project #{project_name}", '']

  outcome = Yadecli::Command::Module::ModuleListCommand.run(project_name: project_name)

  CliUtil.print_command_outcome(outcome)
end