Class: TestServer::Actions::CreateOutput
- Inherits:
-
Object
- Object
- TestServer::Actions::CreateOutput
- Defined in:
- lib/test_server/actions/create_output.rb
Instance Method Summary collapse
-
#initialize(name, output, data, engine = ErbGenerator, repository = TemplateRepository.new) ⇒ CreateOutput
constructor
A new instance of CreateOutput.
- #run ⇒ Object
Constructor Details
#initialize(name, output, data, engine = ErbGenerator, repository = TemplateRepository.new) ⇒ CreateOutput
Returns a new instance of CreateOutput.
11 12 13 14 15 16 17 |
# File 'lib/test_server/actions/create_output.rb', line 11 def initialize(name, output, data, engine = ErbGenerator, repository = TemplateRepository.new) @name = name @output = output @data = data @engine = engine @repository = repository end |
Instance Method Details
#run ⇒ Object
19 20 21 22 |
# File 'lib/test_server/actions/create_output.rb', line 19 def run TestServer.ui_logger.info "Creating example configuration:" template(name, output, data) end |