Sorry mate for the delay, got caught up at work.

Yes you would need 2 solenoid a to operate the ram in both directions. The solenoid a would be wired up to the same switch and operate opposite to each other.

When one is open, one is closed.