Sha256: adfd704eff51c6e839927d31741b8c388885cf2f578c63a727a7d94a2108a3b2
Contents?: true
Size: 510 Bytes
Versions: 5
Compression:
Stored size: 510 Bytes
Contents
# frozen_string_literal: true require "stimulus_reflex/installer" proceed = false if !Rails.root.join("app/reflexes/example_reflex.rb").exist? proceed = if options.key? "example" options["example"] else !no?("✨ Generate an example Reflex with a quick demo? You can remove it later with a single command. (Y/n)") end else say "⏩ app/reflexes/example_reflex.rb already exists." end if proceed generate("stimulus_reflex", "example") else say "⏩ Skipping." end complete_step :example
Version data entries
5 entries across 5 versions & 1 rubygems