Class: Cleon::Services::CloneService

Inherits:
CloneConcept show all
Defined in:
lib/cleon/services/clone_service.rb

Overview

Clone service

Constant Summary

Constants included from ArGuards

ArGuards::GuardModel

Instance Method Summary collapse

Methods inherited from CloneConcept

#call, #do_require, #initialize, #renderer, #write_file

Methods inherited from Service

call, #call

Constructor Details

This class inherits a constructor from Cleon::Services::CloneConcept

Instance Method Details

#configHash

return configuration, must be provided in subclasses

Returns:

  • (Hash)

    of keys code_erb, code_dir, spec_erb, spec_dir, inlcude


11
12
13
14
15
16
17
18
19
# File 'lib/cleon/services/clone_service.rb', line 11

def config
  {
    code_erb: "#{Cleon.root}/lib/erb/service.rb.erb",
    code_dir: "lib/#{@home.base}/services",
    spec_erb: "#{Cleon.root}/lib/erb/service_spec.rb.erb",
    spec_dir: "test/#{@home.base}/services",
    include: "lib/#{@home.base}/services.rb"
  }
end