Class: UploadNoOpenCommand

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

Instance Method Summary collapse

Constructor Details

#initialize(upload_command) ⇒ UploadNoOpenCommand

Returns a new instance of UploadNoOpenCommand.



3
4
5
# File 'lib/commands/upload_no_open_command.rb', line 3

def initialize upload_command
	@upload_command = upload_command
end

Instance Method Details

#accepts_shell_command?(command) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/commands/upload_no_open_command.rb', line 15

def accepts_shell_command? command
	command == 'upload-no-open'
end

#continue_test_loop?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/commands/upload_no_open_command.rb', line 19

def continue_test_loop?
	false
end

#execute_from_shell(params) ⇒ Object



7
8
9
# File 'lib/commands/upload_no_open_command.rb', line 7

def execute_from_shell params
	upload params[1]
end

#upload(session_directory) ⇒ Object



11
12
13
# File 'lib/commands/upload_no_open_command.rb', line 11

def upload session_directory
	@upload_command.upload session_directory, false
end