Class: Pu::Docker::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Pu::Docker::InstallGenerator
- Includes:
- PlutoniumGenerators::Generator
- Defined in:
- lib/generators/pu/docker/install/install_generator.rb
Instance Method Summary collapse
Methods included from PlutoniumGenerators::Generator
derive_association_name, find_shared_namespace, included
Methods included from PlutoniumGenerators::Concerns::Logger
#debug, #error, #exception, #info, #success, #warn
Methods included from PlutoniumGenerators::Concerns::Config
Instance Method Details
#start ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/generators/pu/docker/install/install_generator.rb', line 14 def start in_root do template "Dockerfile", force: true template "Dockerfile.dev", force: true template "docker-compose.yml", force: true proc_file :web, "env RUBY_DEBUG_OPEN=true bin/rails server -b '0.0.0.0'", env: :dev bin_directory gitignore ".volumes" dockerignore ".volumes" end rescue => e exception "#{self.class} failed:", e end |