Sha256: b31a83fd165f15d7501d5f5c5e57154db9bc1623ed0646fb1036c0f3d5d11b79

Contents?: true

Size: 602 Bytes

Versions: 4

Compression:

Stored size: 602 Bytes

Contents

require_relative "base"

module Suspenders
  class ImportDumpGenerator < Generators::Base
    def copy_script
      template "bin_import_dump.erb", "bin/import_dump"
      chmod "bin/import_dump", 0o755
    end

    def inform_user
      instructions = <<~MARKDOWN

        ## Importing a dump from Heroku

        If you have configured the heroku remotes successfully,
        you can import a fresh dump from staging or production with:

            % ./bin/import_dump staging
            % ./bin/import_dump production
      MARKDOWN

      append_file "README.md", instructions
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
welaika-suspenders-2.32.2 lib/suspenders/generators/import_dump_generator.rb
welaika-suspenders-2.32.1 lib/suspenders/generators/import_dump_generator.rb
welaika-suspenders-2.32.0 lib/suspenders/generators/import_dump_generator.rb
welaika-suspenders-2.31.0 lib/suspenders/generators/import_dump_generator.rb