class SemverBump::Find

Public Class Methods

new(start_path='.') click to toggle source
# File lib/semver_bump/find.rb, line 6
def initialize(start_path='.')
  @start_path = start_path
end

Public Instance Methods

search_path() click to toggle source
# File lib/semver_bump/find.rb, line 14
def search_path
  File.expand_path('**/version.rb',start_path)
end
start_path() click to toggle source
# File lib/semver_bump/find.rb, line 10
def start_path
  File.expand_path(@start_path,Dir.getwd)
end
version_file_path() click to toggle source
# File lib/semver_bump/find.rb, line 22
def version_file_path
  version_file_paths.first
end
version_file_paths() click to toggle source
# File lib/semver_bump/find.rb, line 18
def version_file_paths
  Dir[search_path]
end