class Grably::Module::ModuleCall
Reference to external module task call
Attributes
path[R]
profile[R]
task[R]
Public Class Methods
new(path, task, profile = c.profile)
click to toggle source
Initializes module reference with load path and profile @param [String] path absolute path to referencing module
# File lib/grably/core/module.rb, line 13 def initialize(path, task, profile = c.profile) @path = path @task = task @profile = profile end
Public Instance Methods
pretty_print()
click to toggle source
# File lib/grably/core/module.rb, line 26 def pretty_print profiles = [*profile].flatten.join(', ') "Call Grably[#{path} / #{profiles}] #{task.to_s.white.bright}" end
with_profile(*profile)
click to toggle source
Updates profile settings in module ref @param [*String] profile profile names
# File lib/grably/core/module.rb, line 21 def with_profile(*profile) @profile = profile self end