class RebuildPlugins::HelloPlugin
Public Instance Methods
command(cmd_name, *args) { || ... }
click to toggle source
# File lib/rbld-plugin-hello.rb, line 20 def command(cmd_name, *args) banner( "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) { || ... }
click to toggle source
# File lib/rbld-plugin-hello.rb, line 6 def start(stream = STDOUT) @stream = stream banner( '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
Private Instance Methods
cmd_to_s(name, args)
click to toggle source
# File lib/rbld-plugin-hello.rb, line 35 def cmd_to_s(name, args) "#{name}(#{args.join( ', ' )})" end