class Smooth::Command::RunProxy
Attributes
cmd[RW]
current_user[RW]
Public Class Methods
new(current_user, cmd)
click to toggle source
# File lib/smooth/command/run_proxy.rb, line 7 def initialize(current_user, cmd) @current_user = current_user @cmd = cmd end
Public Instance Methods
run(*args)
click to toggle source
# File lib/smooth/command/run_proxy.rb, line 16 def run(*args) cmd.new(*args).tap { |c| c.current_user = current_user }.run end
run!(*args)
click to toggle source
# File lib/smooth/command/run_proxy.rb, line 12 def run!(*args) cmd.new(*args).tap { |c| c.current_user = current_user }.run! end