module FeduxOrgStdlib::Roles::Versionable
Public Instance Methods
version_file(working_directory = Dir.getwd)
click to toggle source
# File lib/fedux_org_stdlib/roles/versionable.rb, line 8 def version_file(working_directory = Dir.getwd) paths = [] paths << File.join(working_directory, 'lib', '**', 'version.rb') file = Dir.glob(paths.shift).first while !paths.blank? && file.blank? fail FeduxOrgStdlib::Rake::Exceptions::VersionFileNotFound, JSON.dump(message: 'Cannot find version file') unless file file end