(path)
| 643 | end |
| 644 | |
| 645 | def list(path) |
| 646 | url = build_deployed_url(path) |
| 647 | with_retry(3, url) do |
| 648 | begin |
| 649 | request(:get, {}, url) do |response| |
| 650 | response.body.scan(/<a href="(.+?)"/).flatten |
| 651 | end |
| 652 | rescue Error => error |
| 653 | case error.response |
| 654 | when Net::HTTPNotFound |
| 655 | return [] |
| 656 | else |
| 657 | raise |
| 658 | end |
| 659 | end |
| 660 | end |
| 661 | end |
| 662 | |
| 663 | def upload(path, destination_path) |
| 664 | destination_url = build_deployed_url(destination_path) |