Class: Tzispa::Commands::Project
- Inherits:
-
Object
- Object
- Tzispa::Commands::Project
- Includes:
- Helpers::I18n, Helpers::Project, Helpers::Security
- Defined in:
- lib/tzispa/commands/project.rb
Constant Summary
Constants included from Helpers::I18n
Helpers::I18n::I18N_DEFAULTS_EN, Helpers::I18n::I18N_DEFAULTS_ES
Constants included from Helpers::Project
Helpers::Project::BOOT_CONFIG, Helpers::Project::BOOT_CONFIG_FILE, Helpers::Project::BOOT_FILE, Helpers::Project::DEFAULT_MOUNT_PATH, Helpers::Project::ENVC_DEFAULTS, Helpers::Project::GEMFILE, Helpers::Project::GEMFILE_CONTENT, Helpers::Project::GIT_IGNORE, Helpers::Project::PROJECT_STRUCTURE, Helpers::Project::PUMA_CONFIG, Helpers::Project::PUMA_CONFIG_FILE
Instance Attribute Summary collapse
-
#apps ⇒ Object
Returns the value of attribute apps.
-
#created ⇒ Object
Returns the value of attribute created.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name) ⇒ Project
constructor
A new instance of Project.
Constructor Details
#initialize(name) ⇒ Project
Returns a new instance of Project.
24 25 26 27 |
# File 'lib/tzispa/commands/project.rb', line 24 def initialize(name) @name = name @apps = [] end |
Instance Attribute Details
#apps ⇒ Object
Returns the value of attribute apps.
22 23 24 |
# File 'lib/tzispa/commands/project.rb', line 22 def apps @apps end |
#created ⇒ Object
Returns the value of attribute created.
22 23 24 |
# File 'lib/tzispa/commands/project.rb', line 22 def created @created end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/tzispa/commands/project.rb', line 22 def name @name end |
Instance Method Details
#generate ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/tzispa/commands/project.rb', line 29 def generate return unless generate_structure generate_projectrc generate_environment generate_rackup generate_gemfile generate_puma_config generate_boot_config generate_gitignore generate_i18n(%w[en es]) generate_database_config end |