Class: InitSessionCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/commands/init_session_command.rb

Instance Method Summary collapse

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

Returns:

  • (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

Returns:

  • (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_sessionObject



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