Class: Shred::Commands::PlatformDeps::ShellCommandDependency

Inherits:
Dependency
  • Object
show all
Defined in:
lib/shred/commands/platform_deps.rb

Instance Attribute Summary collapse

Attributes inherited from Dependency

#sym

Instance Method Summary collapse

Constructor Details

#initialize(sym: nil, install_command_lines: nil, update_command_lines: nil) ⇒ ShellCommandDependency

Returns a new instance of ShellCommandDependency.



65
66
67
68
69
# File 'lib/shred/commands/platform_deps.rb', line 65

def initialize(sym: nil, install_command_lines: nil, update_command_lines: nil)
  super(sym: sym)
  @install_command_lines = install_command_lines
  @update_command_lines = update_command_lines
end

Instance Attribute Details

#install_command_linesObject (readonly)

Returns the value of attribute install_command_lines.



63
64
65
# File 'lib/shred/commands/platform_deps.rb', line 63

def install_command_lines
  @install_command_lines
end

#update_command_linesObject (readonly)

Returns the value of attribute update_command_lines.



63
64
65
# File 'lib/shred/commands/platform_deps.rb', line 63

def update_command_lines
  @update_command_lines
end

Instance Method Details

#install(ctx) ⇒ Object



71
72
73
# File 'lib/shred/commands/platform_deps.rb', line 71

def install(ctx)
  super(ctx, install_command_lines)
end

#update(ctx) ⇒ Object



75
76
77
# File 'lib/shred/commands/platform_deps.rb', line 75

def update(ctx)
  super(ctx, update_command_lines)
end