Sha256: 01406b16dd4a5a8ff782785a707c2d286539927e492a0935ec5d14e3a5f1c56a
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
require_relative "teuton/application" module Teuton def self.create(path_to_new_dir) require_relative "teuton/skeleton" Skeleton.create(path_to_new_dir) end def self.run(projectpath, options = {}) Application.instance.add_input_params(projectpath, options) require_dsl_and_script("teuton/case_manager/dsl") # Define DSL keywords end def self.readme(projectpath, options = {}) # Create Readme file for a teuton test Application.instance.add_input_params(projectpath, options) require_dsl_and_script("teuton/readme/readme") # Define DSL keywords app = Application.instance readme = Readme.new(app.script_path, app.config_path) readme.show end def self.check(projectpath, options = {}) Application.instance.add_input_params(projectpath, options) require_dsl_and_script("teuton/check/laboratory") # Define DSL keywords app = Application.instance lab = Laboratory.new(app.script_path, app.config_path) lab.show unless options[:panelconfig] lab.show_panelconfig if options[:panelconfig] end private_class_method def self.require_dsl_and_script(dslpath) app = Application.instance require_relative dslpath begin require_relative app.script_path rescue SyntaxError => e puts e.to_s puts Rainbow.new("[FAIL ] Reading file #{app.script_path}").red puts Rainbow.new("[ERROR] Syntax Error!").red end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
teuton-2.4.3 | lib/teuton.rb |
teuton-2.4.2 | lib/teuton.rb |
teuton-2.4.1 | lib/teuton.rb |