Sha256: 50ed2bd46e89d54a342fef9110122011bb3a8cf7476e7e9feb482462af838f05
Contents?: true
Size: 1.37 KB
Versions: 4
Compression:
Stored size: 1.37 KB
Contents
require_relative "teuton/utils/project" module Teuton def self.create(path_to_new_dir) require_relative "teuton/skeleton" Skeleton.new.create(path_to_new_dir) end def self.check(projectpath, options = {}) Project.add_input_params(projectpath, options) require_dsl_and_script("teuton/check/laboratory") # Define DSL lab = Laboratory.new( Project.value[:script_path], Project.value[:config_path] ) if options["onlyconfig"] lab.show_onlyconfig else lab.show end end def self.run(projectpath, options = {}) # Application.instance.add_input_params(projectpath, options) Project.add_input_params(projectpath, options) require_dsl_and_script("teuton/case_manager/dsl") # Define DSL end def self.readme(projectpath, options = {}) Project.add_input_params(projectpath, options) require_dsl_and_script("teuton/readme/readme") # Define DSL readme = Readme.new( Project.value[:script_path], Project.value[:config_path] ) readme.show end private_class_method def self.require_dsl_and_script(dslpath) require_relative dslpath begin require_relative Project.value[:script_path] rescue => e warn e warn Rainbow.new("[FAIL ] Reading file #{Project.value[:script_path]}").red warn Rainbow.new("[ERROR] Syntax Error!").red exit 1 end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.8.0 | lib/teuton.rb |
teuton-2.7.3 | lib/teuton.rb |
teuton-2.7.2 | lib/teuton.rb |
teuton-2.7.1 | lib/teuton.rb |