Class: EY::CLI::Recipes

Inherits:
Thor show all
Defined in:
lib/engineyard/cli/recipes.rb

Instance Method Summary collapse

Instance Method Details

#applyObject



18
19
20
21
# File 'lib/engineyard/cli/recipes.rb', line 18

def apply
  environment = fetch_environment(options[:environment], options[:account])
  apply_recipes(environment)
end

#downloadObject



82
83
84
85
86
# File 'lib/engineyard/cli/recipes.rb', line 82

def download
  environment = fetch_environment(options[:environment], options[:account])
  environment.download_recipes
  EY.ui.say "Recipes downloaded successfully for #{environment.name}"
end

#uploadObject



45
46
47
48
49
50
51
# File 'lib/engineyard/cli/recipes.rb', line 45

def upload
  environment = fetch_environment(options[:environment], options[:account])
  upload_recipes(environment, options[:file])
  if options[:apply]
    apply_recipes(environment)
  end
end