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