class CLI

Command Line User Interface

CLI#test

CLI#play

CLI#readme

Class method Teuton#version

Public Instance Methods

check(path_to_rb_file) click to toggle source

Verify or test Teuton test units syntax @param path_to_rb_file [String] Route to main rb Teuton file

# File lib/teuton/cli/check.rb, line 35
def check(path_to_rb_file)
  Project.check(path_to_rb_file, options)
end
method_missing(method, *_args, &_block) click to toggle source

These inputs are equivalents:

  • teuton dir/foo

  • teuton run dir/foo

  • teuton play dir/foo

# File lib/teuton/cli.rb, line 32
def method_missing(method, *_args, &_block)
  play(method.to_s)
end
new(path_to_new_dir) click to toggle source

Command: create new Teuton project

# File lib/teuton/cli.rb, line 23
def new(path_to_new_dir)
  Skeleton.create(path_to_new_dir)
end
play(filepath) click to toggle source

Execute Teuton test unit @param filepath [String] Route to main: rb file or folder

# File lib/teuton/cli/play.rb, line 35
def play(filepath)
  Project.play(filepath, options)
end
readme(path_to_rb_file) click to toggle source

Create README from teuton test @param path_to_rb_file [String] Route to main rb Teuton file

# File lib/teuton/cli/readme.rb, line 23
def readme(path_to_rb_file)
  Project.readme(path_to_rb_file, options)
end
respond_to_missing?(method_name, include_private = false) click to toggle source
Calls superclass method
# File lib/teuton/cli.rb, line 36
def respond_to_missing?(method_name, include_private = false)
  super
end
version() click to toggle source

Display version

# File lib/teuton/cli/version.rb, line 9
def version
  puts "#{Application::NAME} (version #{Application::VERSION})"
end