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