Sha256: 3828e078b7023d1910fe1345405372ef9e1c08f55330f0a3f256d5fcf1e7589c
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
# encoding: utf-8 require 'fedux_org_stdlib/rake/exceptions' module FeduxOrgStdlib module Roles module Versionable 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? and file.blank? raise FeduxOrgStdlib::Rake::Exceptions::VersionFileNotFound, JSON.dump(message: 'Cannot find version file') unless file file end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fedux_org-stdlib-0.7.21 | lib/fedux_org_stdlib/roles/versionable.rb |
fedux_org-stdlib-0.7.20 | lib/fedux_org_stdlib/roles/versionable.rb |