Module: Teuton

Defined in:
lib/teuton.rb,
lib/teuton/version.rb

Constant Summary collapse

VERSION =
"2.11.0"
APPNAME =
"teuton"
GEMNAME =
"teuton"
DOCKERNAME =
"dvarrui/#{GEMNAME}"
HOMEPAGE =
"https://github.com/teuton-software/teuton"

Class Method Summary collapse

Class Method Details

.check(projectpath, options = {}) ⇒ Object



9
10
11
12
13
14
15
16
17
18
# File 'lib/teuton.rb', line 9

def self.check(projectpath, options = {})
  Project.add_input_params(projectpath, options)
  require_dsl_and_script("teuton/check/main")
  require_relative "teuton/check/checker"
  checker = Checker.new(
    Project.value[:script_path],
    Project.value[:config_path]
  )
  checker.show(options["onlyconfig"] || false)
end

.create(path_to_new_dir) ⇒ Object



4
5
6
7
# File 'lib/teuton.rb', line 4

def self.create(path_to_new_dir)
  require_relative "teuton/skeleton"
  Skeleton.new.create(path_to_new_dir)
end

.readme(projectpath, options = {}) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/teuton.rb', line 25

def self.readme(projectpath, options = {})
  Project.add_input_params(projectpath, options)
  require_dsl_and_script("teuton/readme/main")
  readme = Readme.new(
    Project.value[:script_path],
    Project.value[:config_path]
  )
  readme.show
end

.run(projectpath, options = {}) ⇒ Object



20
21
22
23
# File 'lib/teuton.rb', line 20

def self.run(projectpath, options = {})
  Project.add_input_params(projectpath, options)
  require_dsl_and_script("teuton/case_manager/dsl")
end

.server(projectpath) ⇒ Object



35
36
37
38
# File 'lib/teuton.rb', line 35

def self.server(projectpath)
  require_relative "teuton/config/server"
  ConfigServer.configure_project(projectpath)
end