Module: DevopsHelper::GemCoreHelper

Includes:
Antrapol::ToolRack::ConditionUtils
Included in:
GemReleaseHelper
Defined in:
lib/devops_helper/gem_core_helper.rb

Instance Method Summary collapse

Instance Method Details

#find_gemspec(root) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/devops_helper/gem_core_helper.rb', line 11

def find_gemspec(root)
   if is_empty?(root)
     raise DevopsHelper::Error, "Root path '#{root}' to find_gemspec is empty"
   else
     Dir.glob(File.join(root,"*.gemspec")).first
   end
end