Class: Hephaestus::DeploymentGenerator
Instance Method Summary
collapse
default_source_root, inherited
#bundle_command
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #gem, #replace_in_file, #replace_in_files
Instance Method Details
#docker ⇒ Object
18
19
20
21
22
|
# File 'lib/hephaestus/generators/deployment_generator.rb', line 18
def docker
copy_file("compose.yml", "compose.yml")
copy_file("Dockerfile", "Dockerfile")
copy_file("bin/docker-entrypoint", "bin/docker-entrypoint")
end
|
#dotenv ⇒ Object
13
14
15
16
|
# File 'lib/hephaestus/generators/deployment_generator.rb', line 13
def dotenv
copy_file(".env.sample", ".env")
copy_file(".env.sample", ".env.sample")
end
|
#fly ⇒ Object
24
25
26
27
28
|
# File 'lib/hephaestus/generators/deployment_generator.rb', line 24
def fly
directory("vendor/fly", "vendor/fly")
copy_file("Dockerfile", "Dockerfile")
copy_file("bin/docker-entrypoint", "bin/docker-entrypoint")
end
|
#procfile ⇒ Object
8
9
10
11
|
# File 'lib/hephaestus/generators/deployment_generator.rb', line 8
def procfile
copy_file("Procfile.dev", "Procfile.dev")
copy_file("Procfile.debug", "Procfile.debug")
end
|