Class: Runbook::Statements::TmuxCommand
- Inherits:
-
Runbook::Statement
- Object
- Node
- Runbook::Statement
- Runbook::Statements::TmuxCommand
- Defined in:
- lib/runbook/statements/tmux_command.rb
Instance Attribute Summary collapse
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
-
#pane ⇒ Object
readonly
Returns the value of attribute pane.
Attributes inherited from Runbook::Statement
Instance Method Summary collapse
-
#initialize(cmd, pane) ⇒ TmuxCommand
constructor
A new instance of TmuxCommand.
Methods inherited from Runbook::Statement
Methods included from Hooks::Invoker
#_execute_after_hooks, #_execute_around_hooks, #_execute_before_hooks, #invoke_with_hooks
Methods inherited from Node
#dynamic!, #dynamic?, #visited!, #visited?
Constructor Details
#initialize(cmd, pane) ⇒ TmuxCommand
Returns a new instance of TmuxCommand.
5 6 7 8 |
# File 'lib/runbook/statements/tmux_command.rb', line 5 def initialize(cmd, pane) @cmd = cmd @pane = pane end |
Instance Attribute Details
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
3 4 5 |
# File 'lib/runbook/statements/tmux_command.rb', line 3 def cmd @cmd end |
#pane ⇒ Object (readonly)
Returns the value of attribute pane.
3 4 5 |
# File 'lib/runbook/statements/tmux_command.rb', line 3 def pane @pane end |