Class: EY::CLI::Recipes
Instance Method Summary collapse
Instance Method Details
#apply ⇒ Object
18 19 20 21 |
# File 'lib/engineyard/cli/recipes.rb', line 18 def apply environment = fetch_environment([:environment], [:account]) apply_recipes(environment) end |
#download ⇒ Object
82 83 84 85 86 |
# File 'lib/engineyard/cli/recipes.rb', line 82 def download environment = fetch_environment([:environment], [:account]) environment.download_recipes EY.ui.say "Recipes downloaded successfully for #{environment.name}" end |
#upload ⇒ Object
45 46 47 48 49 50 51 |
# File 'lib/engineyard/cli/recipes.rb', line 45 def upload environment = fetch_environment([:environment], [:account]) upload_recipes(environment, [:file]) if [:apply] apply_recipes(environment) end end |