Class: Hephaestus::DeploymentGenerator

Inherits:
Generators::Base show all
Defined in:
lib/hephaestus/generators/deployment_generator.rb

Instance Method Summary collapse

Methods inherited from Generators::Base

default_source_root, inherited

Methods included from ExitOnFailure

#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

#dockerObject



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

#dotenvObject



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

#flyObject



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

#procfileObject



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