Class: Serviceable::Generators::ServiceObject

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/serviceable/generators/service_object.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
# File 'lib/serviceable/generators/service_object.rb', line 8

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#copy_recipeObject

def create_group

empty_directory("app/services")

end



18
19
20
# File 'lib/serviceable/generators/service_object.rb', line 18

def copy_recipe
  template("service_template.rb", "app/services/#{name.downcase}.rb")
end