Sha256: 1d2b41b8ca815fed9e4f9aa79304909f76b238e736bcc5fb47eb479c7ec39945
Contents?: true
Size: 764 Bytes
Versions: 5
Compression:
Stored size: 764 Bytes
Contents
# frozen_string_literal: true require "stimulus_reflex/installer" reflexes_path = Rails.root.join("app/reflexes") step_path = "/app/reflexes/" application_reflex_path = reflexes_path / "application_reflex.rb" application_reflex_src = fetch(step_path, "application_reflex.rb.tt") # verify app/reflexes exists and create if necessary if reflexes_path.exist? say "⏩ app/reflexes directory already exists. Skipping." else empty_directory reflexes_path say "✅ Created app/reflexes directory" end if application_reflex_path.exist? say "⏩ app/reflexes/application_reflex.rb is alredy present. Skipping." else copy_file application_reflex_src, application_reflex_path say "✅ Created app/reflexes/application_reflex.rb" end complete_step :reflexes
Version data entries
5 entries across 5 versions & 1 rubygems