Class: OrigenAppGenerators::TestEngineering::StandAloneApplication
- Inherits:
-
Application
- Object
- Origen::CodeGenerators::Base
- Base
- Application
- OrigenAppGenerators::TestEngineering::StandAloneApplication
- Includes:
- Common
- Defined in:
- lib/origen_app_generators/test_engineering/stand_alone_application.rb
Overview
Generates a generic application shell
Instance Method Summary collapse
- #conclude ⇒ Object
- #generate_files ⇒ Object
-
#get_user_input ⇒ Object
Any methods that are not protected will get invoked in the order that they are defined when the generator is run, method naming is irrelevant unless you want to override a method that is defined by the parent class.
- #modify_files ⇒ Object
Methods included from Common
Methods inherited from Base
#get_common_user_input, #get_lastest_origen_version, #set_source_paths, #set_type, #validate_application_name
Instance Method Details
#conclude ⇒ Object
33 34 35 36 |
# File 'lib/origen_app_generators/test_engineering/stand_alone_application.rb', line 33 def conclude # Print out anything you think the user should know about their new application at the end puts "New app created at: #{destination_root}" end |
#generate_files ⇒ Object
19 20 21 22 23 24 |
# File 'lib/origen_app_generators/test_engineering/stand_alone_application.rb', line 19 def generate_files @development_dependencies = [ ['origen_testers'] ] build_filelist end |
#get_user_input ⇒ Object
Any methods that are not protected will get invoked in the order that they are defined when the generator is run, method naming is irrelevant unless you want to override a method that is defined by the parent class
13 14 15 16 17 |
# File 'lib/origen_app_generators/test_engineering/stand_alone_application.rb', line 13 def get_user_input # The methods to get the common user input that applies to all applications will # get called at the start automatically, you have a chance here to ask any additional # questions that are specific to the type of application being generated end |
#modify_files ⇒ Object
26 27 28 29 30 31 |
# File 'lib/origen_app_generators/test_engineering/stand_alone_application.rb', line 26 def modify_files # If you want to modify any of the generated files you can do so now, you have access # to all of the Thor Action methods described here: # http://www.rubydoc.info/github/wycats/thor/Thor/Actions # See the enable method in lib/app_generators/new.rb for some examples of using these. end |