Sha256: 90d8fd9b539ec94fc3453a61dfbdd2e68099399b4400642f2707f0d238fb8e8e

Contents?: true

Size: 625 Bytes

Versions: 4

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module PicoApi
  module Generators
    module Commands
      class CreateBase < Base
        def call
          create_bin_folder
          create_lib_folder
          create_config_folder
        end

        private

        def create_bin_folder
          FileUtils.mkdir_p("#{project_name_snakecased}/bin")
        end

        def create_lib_folder
          FileUtils.mkdir_p("#{project_name_snakecased}/lib/#{project_name_snakecased}")
        end

        def create_config_folder
          FileUtils.mkdir_p("#{project_name_snakecased}/config")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pico_api-0.0.4 lib/pico_api/generators/commands/create_base.rb
pico_api-0.0.3 lib/pico_api/generators/commands/create_base.rb
pico_api-0.0.2 lib/pico_api/generators/commands/create_base.rb
pico_api-0.0.1 lib/pico_api/generators/commands/create_base.rb