Class: Yadecli::Cli::Project

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

Overview

Build

Instance Method Summary collapse

Instance Method Details

#install(project_name) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/yadecli/cli/project.rb', line 22

def install(project_name)
  CliUtil.print_header'YadeCli Install Project',
                      ["Going to install Yade project #{project_name}", '']

  outcome = Yadecli::Command::Project::ProjectInstallCommand.run(project_name: project_name, options: options)

  CliUtil.print_command_outcome(outcome)
end

#listObject



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

def list
  CliUtil.print_header'YadeCli Projects', ['This are the available Yade projects', '']

  outcome = Yadecli::Command::Project::ProjectListCommand.run

  CliUtil.print_command_outcome(outcome)
end

#setup(project_name) ⇒ Object



43
44
45
46
47
48
49
50
# File 'lib/yadecli/cli/project.rb', line 43

def setup(project_name)
  CliUtil.print_header'YadeCli Project Setup',
                      ["Going to setup Yade project #{project_name}"]

  outcome = Yadecli::Command::Project::ProjectSetupCommand.run(project_name: project_name, options: options)

  CliUtil.print_command_outcome(outcome)
end

#start(project_name, selection = nil) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/yadecli/cli/project.rb', line 53

def start(project_name, selection = nil)
  CliUtil.print_header'YadeCli Project Start',['Going to start Yade Project']

  outcome = Yadecli::Command::Project::ProjectStartCommand.run(project_name: project_name, selection: selection,
                                                               options: options)

  CliUtil.print_command_outcome(outcome)
end

#uninstall(project_name) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/yadecli/cli/project.rb', line 33

def uninstall(project_name)
  CliUtil.print_header'YadeCli Uninstall Project',
                      ["Going to uninstall Yade project #{project_name}", '']

  outcome = Yadecli::Command::Project::ProjectUninstallCommand.run(project_name: project_name, options: options)

  CliUtil.print_command_outcome(outcome)
end