class Ey::Core::Cli::Recipes::Download
Public Instance Methods
handle()
click to toggle source
# File lib/ey-core/cli/recipes/download.rb, line 33 def handle if File.exist?("cookbooks") raise Ey::Core::Cli::RecipesExist.new( "Cannot download recipes, cookbooks directory already exists." ) end operator, environment = core_operator_and_environment_for(options) puts "Downloading recipes".green recipes = environment.download_recipes puts "Extracting recipes to 'cookbooks/'".green untar(ungzip(recipes), './') end