Class: InitSessionCommand
- Inherits:
-
Object
- Object
- InitSessionCommand
- Defined in:
- lib/commands/init_session_command.rb
Instance Method Summary collapse
- #accepts_shell_command?(command) ⇒ Boolean
- #continue_test_loop? ⇒ Boolean
- #execute_from_shell(params) ⇒ Object
- #init_session ⇒ Object
-
#initialize(view, runner) ⇒ InitSessionCommand
constructor
A new instance of InitSessionCommand.
Constructor Details
#initialize(view, runner) ⇒ InitSessionCommand
Returns a new instance of InitSessionCommand.
3 4 5 6 |
# File 'lib/commands/init_session_command.rb', line 3 def initialize view, runner @view = view @runner = runner end |
Instance Method Details
#accepts_shell_command?(command) ⇒ Boolean
17 18 19 |
# File 'lib/commands/init_session_command.rb', line 17 def accepts_shell_command? command command == 'init-session' end |
#continue_test_loop? ⇒ Boolean
21 22 23 |
# File 'lib/commands/init_session_command.rb', line 21 def continue_test_loop? false end |
#execute_from_shell(params) ⇒ Object
8 9 10 |
# File 'lib/commands/init_session_command.rb', line 8 def execute_from_shell params init_session end |
#init_session ⇒ Object
12 13 14 15 |
# File 'lib/commands/init_session_command.rb', line 12 def init_session session_dir = @runner.init_session @view.show_init_session_result session_dir end |