Class: PicoApi::Generators::Commands::CreateBasicStructure

Inherits:
Object
  • Object
show all
Defined in:
lib/pico_api/generators/commands/create_basic_structure.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_name_data_mapper) ⇒ CreateBasicStructure

Returns a new instance of CreateBasicStructure.



16
17
18
# File 'lib/pico_api/generators/commands/create_basic_structure.rb', line 16

def initialize(project_name_data_mapper)
  @project_name_data_mapper = project_name_data_mapper
end

Class Method Details

.call(project_name) ⇒ Object



9
10
11
12
13
14
# File 'lib/pico_api/generators/commands/create_basic_structure.rb', line 9

def self.call(project_name)
  project_name_data_mapper =
    ::PicoApi::Generators::ProjectNameDataMapper.new(project_name)

  new(project_name_data_mapper).call
end

Instance Method Details

#callObject



20
21
22
23
24
# File 'lib/pico_api/generators/commands/create_basic_structure.rb', line 20

def call
  create_bin_folder
  create_lib_folder
  create_config_folder
end