Sha256: facb03f4d1a01adf2e402011e02aef48075ea83988ea919250fc408a916e5b1a
Contents?: true
Size: 529 Bytes
Versions: 6
Compression:
Stored size: 529 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