Sha256: 06384d6b8e50875523331cd185be5a3322aa77307e6c7ebe55f311bf3534d77d
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
class BoomNats::InstallGenerator < Rails::Generators::NamedBase source_root File.expand_path("templates", __dir__) desc " asdasdasd " def install copy_file "initializer.rb", "config/initializers/boom_nats.rb" create_file "app/consumers/hello_consumer.rb", <<~FILE class HelloConsumer < BoomNats::Topic def consume { message: "Hello \#{params["name"]}, how are you?" } end end FILE end desc " asdasdasd sadasda" def consumer puts "asd: #{asd}" end end
Version data entries
6 entries across 6 versions & 1 rubygems