Class: Shred::Commands::PlatformDeps::ShellCommandDependency
- Inherits:
-
Dependency
- Object
- Dependency
- Shred::Commands::PlatformDeps::ShellCommandDependency
- Defined in:
- lib/shred/commands/platform_deps.rb
Instance Attribute Summary collapse
-
#install_command_lines ⇒ Object
readonly
Returns the value of attribute install_command_lines.
-
#update_command_lines ⇒ Object
readonly
Returns the value of attribute update_command_lines.
Attributes inherited from Dependency
Instance Method Summary collapse
-
#initialize(sym: nil, install_command_lines: nil, update_command_lines: nil) ⇒ ShellCommandDependency
constructor
A new instance of ShellCommandDependency.
- #install(ctx) ⇒ Object
- #update(ctx) ⇒ Object
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_lines ⇒ Object (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_lines ⇒ Object (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 |