lib/shuttle/deploy.rb
# Get list of all existing releases
# @return [Array<Integer>]
Get list of all existing releases
Get list of all existing releases
def available_releases
      if ssh.directory_exists?(deploy_path('releases'))
        releases = ssh.capture("ls --color=never #{deploy_path}/releases")
        releases.
          scan(/[\d]+/).
          map { |s| s.strip.to_i }.
          sort
      else
        []
      end
    end
def available_releases if ssh . directory_exists? ( deploy_path ( 'releases' ) ) releases = ssh . capture ( "ls --color=never #{deploy_path}/releases" ) releases . scan ( / [ \d ]+ / ) . map { | s | s . strip . to_i } . sort else [ ] end end
Get list of all existing releases
Get list of all existing releases
None
Array<Integer>