Class: UploadNoOpenCommand
- Inherits:
-
Object
- Object
- UploadNoOpenCommand
- Defined in:
- lib/commands/upload_no_open_command.rb
Instance Method Summary collapse
- #accepts_shell_command?(command) ⇒ Boolean
- #continue_test_loop? ⇒ Boolean
- #execute_from_shell(params) ⇒ Object
-
#initialize(upload_command) ⇒ UploadNoOpenCommand
constructor
A new instance of UploadNoOpenCommand.
- #upload(session_directory) ⇒ Object
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
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
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 |