class Shred::Commands::PlatformDeps::Dependency
Attributes
sym[R]
Public Class Methods
new(sym: nil)
click to toggle source
# File lib/shred/commands/platform_deps.rb, line 11 def initialize(sym: nil) @sym = sym end
Public Instance Methods
install(ctx, command_lines)
click to toggle source
# File lib/shred/commands/platform_deps.rb, line 15 def install(ctx, command_lines) ctx.run_shell_command(ShellCommand.new( command_lines: command_lines, success_msg: "#{sym} installed", error_msg: "#{sym} could not be installed" )) end
update(ctx, command_lines)
click to toggle source
# File lib/shred/commands/platform_deps.rb, line 23 def update(ctx, command_lines) ctx.run_shell_command(ShellCommand.new( command_lines: command_lines, success_msg: "#{sym} updated", error_msg: "#{sym} could not be updated" )) end