module Riffer::Rig::Commands::Reload
Public Instance Methods
Source
# File lib/riffer/rig/commands/reload.rb, line 8 def command(reloader) Riffer::Rig::Command.new( 'reload', description: 'Reload the rig.rb files, settings, credentials and trust', extension: :core ) { |ctx| run(reloader, ctx) } end
@rbs reloader: Riffer::Rig::Loader::Reloader @rbs return: Riffer::Rig::Command
(Riffer::Rig::Loader::Reloader reloader, Riffer::Rig::Command::Context ctx) → void
Source
# File lib/riffer/rig/commands/reload.rb, line 19 def run(reloader, ctx) reloaded = reloader.reload(ctx.runtime, force: true) ctx.say('Reloaded') if reloaded.is_a?(Riffer::Rig::Runtime) end
@rbs reloader: Riffer::Rig::Loader::Reloader @rbs ctx: Riffer::Rig::Command::Context @rbs return: void