Class: Rubypit::ProjectGenerator
- Inherits:
-
Object
- Object
- Rubypit::ProjectGenerator
- Defined in:
- lib/rubypit/cli.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(name) ⇒ ProjectGenerator
constructor
A new instance of ProjectGenerator.
Constructor Details
#initialize(name) ⇒ ProjectGenerator
Returns a new instance of ProjectGenerator.
16 17 18 |
# File 'lib/rubypit/cli.rb', line 16 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/rubypit/cli.rb', line 14 def name @name end |
Instance Method Details
#generate ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/rubypit/cli.rb', line 20 def generate create_project_directory create_config_directory create_database_config create_gitignore create_gemfile end |