app/models/spin.rb
def has_valid_releases?
    @releases = scm_connection.releases(full_name) || []
    if @releases.empty? || @releases.kind_of?(ErrorExchange)
      spin_log('[ERROR] The Spin should have at least a release, please add it to the source control and refresh the Spin')
    else
      spin_log('[OK] The Spin has releases')
      return true
    end
    false
  end
# Validate release
#
# == Returns:
# A boolean representing if the spin has releases
#
Validate release
Returns:
A boolean representing if the spin has releases
Validate release Returns : A boolean representing if the spin has releases
def has_valid_releases?
    @releases = scm_connection.releases(full_name) || []
    if @releases.empty? || @releases.kind_of?(ErrorExchange)
      spin_log('[ERROR] The Spin should have at least a release, please add it to the source control and refresh the Spin')
    else
      spin_log('[OK] The Spin has releases')
      return true
    end
    false
  end
def has_valid_releases? @releases = scm_connection . releases ( full_name ) || [ ] if @releases . empty? || @releases . kind_of? ( ErrorExchange ) spin_log ( '[ERROR] The Spin should have at least a release, please add it to the source control and refresh the Spin' ) else spin_log ( '[OK] The Spin has releases' ) return true end false end
Validate release
 Returns:
A boolean representing if the spin has releases
Validate release Returns : A boolean representing if the spin has releases