app/models/spin.rb
def has_valid_metadata?
    meta = scm_connection.metadata(full_name)
    if meta.blank? || meta.kind_of?(ErrorExchange)
      spin_log('[ERROR] Error parsing metadata')
    else
      spin_log('[OK] The Spin metadata is correct')
      return true
    end
    false
  end
# Validate metadata
#
# == Returns:
# A boolean representing if the spin metadata is ok
#
Validate metadata
Returns:
A boolean representing if the spin metadata is ok
Validate metadata Returns : A boolean representing if the spin metadata is ok
def has_valid_metadata?
    meta = scm_connection.metadata(full_name)
    if meta.blank? || meta.kind_of?(ErrorExchange)
      spin_log('[ERROR] Error parsing metadata')
    else
      spin_log('[OK] The Spin metadata is correct')
      return true
    end
    false
  end
def has_valid_metadata? meta = scm_connection . metadata ( full_name ) if meta . blank? || meta . kind_of? ( ErrorExchange ) spin_log ( '[ERROR] Error parsing metadata' ) else spin_log ( '[OK] The Spin metadata is correct' ) return true end false end
Validate metadata
 Returns:
A boolean representing if the spin metadata is ok
Validate metadata Returns : A boolean representing if the spin metadata is ok