Sha256: 3d1bf722e66af1eea8bb999600c01c46635b241bf482333d301bf40051bbfbc3
Contents?: true
Size: 450 Bytes
Versions: 3
Compression:
Stored size: 450 Bytes
Contents
# frozen_string_literal: true module Ikibana class ConsumerGenerator < Rails::Generators::NamedBase source_root File.expand_path("../../templates", __dir__) def create_worker template "consumer.rb.erb", File.join("app/ikibana", class_path, "#{file_name}_consumer.rb") end def create_worker_spec template "consumer_spec.rb.erb", File.join("spec/ikibana", class_path, "#{file_name}_consumer_spec.rb") end end end
Version data entries
3 entries across 3 versions & 1 rubygems