Class: PicoApi::Generators::Commands::CreateConfigApplication
- Inherits:
-
Object
- Object
- PicoApi::Generators::Commands::CreateConfigApplication
- Defined in:
- lib/pico_api/generators/commands/create_config_application.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(file_creator) ⇒ CreateConfigApplication
constructor
A new instance of CreateConfigApplication.
Constructor Details
#initialize(file_creator) ⇒ CreateConfigApplication
Returns a new instance of CreateConfigApplication.
13 14 15 |
# File 'lib/pico_api/generators/commands/create_config_application.rb', line 13 def initialize(file_creator) @file_creator = file_creator end |
Class Method Details
.call(project_name) ⇒ Object
7 8 9 10 11 |
# File 'lib/pico_api/generators/commands/create_config_application.rb', line 7 def self.call(project_name) file_creator = ::PicoApi::Generators::FileCreator.build(project_name) new(file_creator).call end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'lib/pico_api/generators/commands/create_config_application.rb', line 17 def call file_creator.create(template_file_path, destination_path) end |