Class: BPM::ProjectGenerator
- Defined in:
- lib/bpm/project_generator.rb
Instance Attribute Summary
Attributes inherited from Generator
Instance Method Summary collapse
Methods inherited from Generator
#dir_name, #initialize, #say, #shell, #source_paths
Constructor Details
This class inherits a constructor from BPM::Generator
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class BPM::Generator
Instance Method Details
#company_name ⇒ Object
17 18 19 |
# File 'lib/bpm/project_generator.rb', line 17 def company_name ENV['COMPANY_NAME'] || "My Company Inc." end |
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bpm/project_generator.rb', line 6 def run return false if directory_exists? empty_directory '.', :verbose => false empty_directory 'lib' create_files true end |