Class: Serviceable::Generators::ServiceObject
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Serviceable::Generators::ServiceObject
- Includes:
- Thor::Actions
- Defined in:
- lib/serviceable/generators/service_object.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#copy_recipe ⇒ Object
def create_group empty_directory(“app/services”) end.
Class Method Details
.source_root ⇒ Object
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_recipe ⇒ Object
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 |