class AppBuilder::Generators::InstallGenerator
Public Instance Methods
create_deploy_tasks()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 16 def create_deploy_tasks src = s3? ? "deploy_s3.rake" : "deploy.rake" template src, File.join(tasks_path, "deploy.rake") end
create_environment_yaml()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 7 def create_environment_yaml src = s3? ? "environment_s3.yml" : "environment.yml" copy_file src, File.join(deploy_path, "environment.yml") end
create_manifest_yaml_erb()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 12 def create_manifest_yaml_erb copy_file "manifest.yml.erb", File.join(deploy_path, "templates", "manifest.yml.erb") end
Private Instance Methods
deploy_path()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 27 def deploy_path "config/deploy" end
resource_type()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 35 def resource_type options[:resource_type] || "s3" end
s3?()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 31 def s3? resource_type == "s3" end
tasks_path()
click to toggle source
# File lib/generators/app_builder/install/install_generator.rb, line 23 def tasks_path "lib/tasks" end