Class: PicoApi::Generators::Commands::CreateGemfile
- Inherits:
-
Object
- Object
- PicoApi::Generators::Commands::CreateGemfile
- Defined in:
- lib/pico_api/generators/commands/create_gemfile.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(file_copier) ⇒ CreateGemfile
constructor
A new instance of CreateGemfile.
Constructor Details
#initialize(file_copier) ⇒ CreateGemfile
Returns a new instance of CreateGemfile.
13 14 15 |
# File 'lib/pico_api/generators/commands/create_gemfile.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_gemfile.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_gemfile.rb', line 17 def call file_copier.copy(template_file_path, destination_path) end |