class Kameleon::RecipeTemplate
Public Class Methods
Source
# File lib/kameleon/recipe.rb, line 890 def initialize(path, kwargs = {}) super(path, kwargs) end
Calls superclass method
Kameleon::Recipe::new
Public Instance Methods
Source
# File lib/kameleon/recipe.rb, line 894 def relative_path_from_recipe(recipe_path) recipe_path = Pathname.new(recipe_path) relative_path_tpl_repo = @path.relative_path_from(Kameleon.env.repositories_path) absolute_path = Pathname.new(Kameleon.env.workspace).join(relative_path_tpl_repo) return absolute_path.relative_path_from(recipe_path.dirname) end