Class: Busser::RunnerPlugin::Base

Inherits:
Thor::BaseGroup show all
Defined in:
lib/busser/runner_plugin.rb

Overview

Base class for all test runner plugins.

Author:

Direct Known Subclasses

Dummy

Class Method Summary collapse

Methods included from UI

banner, die, fatal, handle_command, info, run!, run_ruby_script!, status, warn

Methods included from Helpers

chef_apply, install_gem, root_path, suite_path, vendor_path

Class Method Details

.postinstall(&block) ⇒ Object



31
32
33
34
35
36
37
38
# File 'lib/busser/runner_plugin.rb', line 31

def self.postinstall(&block)
  (class << self; self; end).send(:define_method, :run_postinstall) do
    klass = Class.new(Busser::Thor::BaseGroup) do
      define_method(:postinstall, &block)
    end
    klass.start
  end
end