Class: RebuildPlugins::HelloPlugin
- Inherits:
-
Plugman::PluginBase
- Object
- Plugman::PluginBase
- RebuildPlugins::HelloPlugin
- Defined in:
- lib/rbld-plugin-hello.rb
Instance Method Summary collapse
- #command(cmd_name, *args) ⇒ Object
- #start(stream = STDOUT) ⇒ Object
- #unknown_command(cmd_name, *args) ⇒ Object
Instance Method Details
#command(cmd_name, *args) ⇒ Object
14 15 16 17 18 |
# File 'lib/rbld-plugin-hello.rb', line 14 def command(cmd_name, *args) ( "Hello from Rebuild CLI plugin known command #{cmd_to_s(cmd_name, args)} handler" ) # yiedling means that plugin errored during this notification processing # yield end |
#start(stream = STDOUT) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rbld-plugin-hello.rb', line 6 def start(stream = STDOUT) @stream = stream ( 'Hello from Rebuild CLI plugin' ) # yiedling means that plugin errored during this notification processing # yield end |
#unknown_command(cmd_name, *args) ⇒ Object
20 21 22 23 24 |
# File 'lib/rbld-plugin-hello.rb', line 20 def unknown_command(cmd_name, *args) ( "Hello from Rebuild CLI plugin unknown command #{cmd_to_s(cmd_name, args)} handler" ) # yielding means that command was processed by this plugin yield end |