Class: RebuildPlugins::HelloPlugin
- Inherits:
-
Plugman::PluginBase
- Object
- Plugman::PluginBase
- RebuildPlugins::HelloPlugin
- Defined in:
- lib/rbld-plugin-hello.rb
Instance Method Summary collapse
Instance Method Details
#command(cmd_name, *args) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/rbld-plugin-hello.rb', line 20 def command(cmd_name, *args) ( "Hello from Rebuild CLI plugin command '#{cmd_to_s(cmd_name, args)}' handler" ) # yiedling means that plugin errored during this notification processing yield if ENV['RBLD_HELLO_FAIL_COMMAND'] == '1' end |
#start(stream = STDOUT) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rbld-plugin-hello.rb', line 6 def start(stream = STDOUT) @stream = stream ( 'Hello from Rebuild CLI plugin' ) # loading command handlers require_relative 'rbld-plugin-hello/rbld_hello.rb' RbldHelloCommand.stream = stream # yiedling means that plugin errored during this notification processing yield if ENV['RBLD_HELLO_FAIL_START'] == '1' end |