Modify

Opened 4 years ago

Closed 4 years ago

#593 closed enhancement (fixed)

Ssh/scp task: Move ssh2_connect checking from init to main

Reported by: petr@… Owned by: mrook
Priority: major Milestone: 2.4.5
Component: phing-tasks-system Version: 2.4.3
Keywords: ssh Cc:

Description

Because the ssh task contains checking for ssh2_connect function in the init function the build fails if the ssh extension is not installed no matter whether the ssh task is actually used in the current target(s) or not.

This causes troubles/build failures where the build file is used in different environments and on some of them we don't actually need/want to have the ssh php extension installed. For example we create an installation package in the integration environment which is then shifted using ssh to the production server where phing is used to do deploy. So ssh is needed on the source box but it is not needed on the target box but phing forces us to have installed on the target box too.

Would it be possible to move the ssh extension checking from init to main so it is only done when the task is actually called?

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by mrook

(In [1030]) Refs #593 - move ssh2 extension check to main()

comment:2 Changed 4 years ago by mrook

  • Milestone changed from TBD to 2.4.5
  • Resolution set to fixed
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed The owner will remain mrook.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.