Sha256: afd119e7ef73071af5b0734c575358903fa3cad1210a200c1b7add01952f2b70

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

module DockerizeRails
  module Constants
    SHELL_SCRIPT_FILE_NAME = 'dockerw'.freeze

    DOCKERIZE_RAILS_CONFIG_FILE_NAME = '.dockerize.yml'.freeze
    DOCKER_COMPOSE_FILE_NAME = 'docker-compose.yml'.freeze
    DOCKERIGNORE_FILE_NAME = '.dockerignore'.freeze

    RAILS_DIRECTORY_NAME = 'rails'.freeze
    MYSQL_DIRECTORY_NAME = 'mysql'.freeze
    PG_DIRECTORY_NAME = 'postgresql'.freeze
    CONFIG_DIRECTORY_NAME = '.dockerized'.freeze
    DATA_DIRECTORY_NAME = 'data_dir'.freeze
    SQL_DIRECTORY_NAME = 'sql'.freeze

    DATABASE_HOST_LINKED = 'linked'.freeze
    DATABASE_HOST_REMOTE = 'remote'.freeze

    COMMANDS = {
      configure: {
        aliases: %I[configure c rc cr],
        help: "Generates '#{DOCKERIZE_RAILS_CONFIG_FILE_NAME}'".freeze,
        params: {
          :'--skip-desc' => 'generates shorter config file, skipping all descriptions'.freeze
        }
      },
      dockerize: {
        aliases: %I[dockerize dc d],
        help: 'Generates docker config files'.freeze
      },
      docker_info: {
        aliases: %I[docker_info di],
        help: 'Shows Docker information'.freeze
      },
      undockerize: {
        aliases: %I[undockerize ud du u dd],
        help: 'Removes docker configurations'.freeze,
        params: {
          :'--purge' => "also removes #{Constants::DOCKERIZE_RAILS_CONFIG_FILE_NAME}".freeze
        }
      },
      help: {
        aliases: %I[help h],
        help: 'prints this message'.freeze
      }
    }.freeze
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dockerize_rails-1.0.3.beta.3 lib/dockerize_rails/constants.rb
dockerize_rails-1.0.3.beta.2 lib/dockerize_rails/constants.rb
dockerize_rails-1.0.3.beta.1 lib/dockerize_rails/constants.rb