Class: RecipeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RecipeGenerator
- Includes:
- AgapeRedRecipes::Bundler, AgapeRedRecipes::Gemfile
- Defined in:
- lib/generators/recipe_generator.rb
Instance Method Summary collapse
Methods included from AgapeRedRecipes::Gemfile
#gem, #gem_group, #gem_group_exists?, #insert_at_end_of_line_containing
Methods included from AgapeRedRecipes::Bundler
Instance Method Details
#generate_recipe ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/generators/recipe_generator.rb', line 10 def generate_recipe if recipe_name == 'list' list_repos else apply_recipe recipe_name end end |
#open(url) ⇒ Object
23 24 25 |
# File 'lib/generators/recipe_generator.rb', line 23 def open(url) Net::HTTP.get(URI.parse(url)) end |