agape-red-recipes 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,14 @@ class RecipeGenerator < Rails::Generators::Base
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def apply_recipe the_recipe
|
34
|
-
|
34
|
+
if the_recipe.include?('.')
|
35
|
+
RecipeGenerator.source_root(Rails.root)
|
36
|
+
apply the_recipe
|
37
|
+
elsif the_recipe.starts_with?('http')
|
38
|
+
apply the_recipe
|
39
|
+
else
|
40
|
+
apply "https://raw.github.com/AgapeRedRecipes/#{the_recipe}/master/recipe.rb"
|
41
|
+
end
|
35
42
|
end
|
36
43
|
|
37
44
|
end
|