Class: Yoker::Generators::BaseGenerator
- Inherits:
-
Object
- Object
- Yoker::Generators::BaseGenerator
- Defined in:
- lib/yoker/generators/base_generator.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Instance Method Summary collapse
- #generate_all ⇒ Object
-
#initialize(config, shell) ⇒ BaseGenerator
constructor
A new instance of BaseGenerator.
Constructor Details
#initialize(config, shell) ⇒ BaseGenerator
16 17 18 19 |
# File 'lib/yoker/generators/base_generator.rb', line 16 def initialize(config, shell) @config = config @shell = shell end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/yoker/generators/base_generator.rb', line 14 def config @config end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
14 15 16 |
# File 'lib/yoker/generators/base_generator.rb', line 14 def shell @shell end |
Instance Method Details
#generate_all ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/yoker/generators/base_generator.rb', line 21 def generate_all generate_version_manager_files generate_database_files generate_container_files generate_setup_script update_gemfile if config[:database] != "sqlite3" end |