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.



55
56
57
58
59
# File 'lib/shred/commands/platform_deps.rb', line 55

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.



53
54
55
# File 'lib/shred/commands/platform_deps.rb', line 53

def install_command_lines
  @install_command_lines
end

#update_command_linesObject (readonly)

Returns the value of attribute update_command_lines.



53
54
55
# File 'lib/shred/commands/platform_deps.rb', line 53

def update_command_lines
  @update_command_lines
end

Instance Method Details

#install(ctx) ⇒ Object



61
62
63
# File 'lib/shred/commands/platform_deps.rb', line 61

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

#update(ctx) ⇒ Object



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

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