Class: AppBuilder::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/app_builder/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_deploy_tasksObject



16
17
18
19
# 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_yamlObject



7
8
9
10
# 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_erbObject



12
13
14
# 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