templates/service_definition.rb.erb in shatter-rb-0.0.2 vs templates/service_definition.rb.erb in shatter-rb-0.1.0
- old
+ new
@@ -1,9 +1,5 @@
# frozen_string_literal: true
-require_relative './functions/hello_world_function'
-
-module <%= app_name %>
- class ServiceDefinition < Shatter::Service::ServiceDefinition
- register_function :hello_world, <%= app_name %>::Functions::HelloWorldFunction
- end
-end
+class ServiceDefinition < Shatter::Service::ServiceDefinition
+ register_function :hello_world, HelloWorldFunction
+end
\ No newline at end of file