Sha256: 8d9e6e4c7f83bd38e51476fe1fe6466d4ac99a4a9cdb289f5772ab4248d3ab73

Contents?: true

Size: 544 Bytes

Versions: 1

Compression:

Stored size: 544 Bytes

Contents

# frozen_string_literal: true

module Hoboken
  module AddOns
    # Heroku deployment support.
    #
    class Heroku < ::Hoboken::Group
      def slugignore
        create_file('.slugignore') do
          "spec\ntags\n/test\n/tmp"
        end
      end

      def fix_stdout_for_logging
        insert_into_file('config.ru', after: /# frozen_string_literal: true/) do
          "\n\n$stdout.sync = true"
        end
      end

      def reminders
        say "\nGemfile updated... don't forget to 'bundle install'"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hoboken-0.9.0 lib/hoboken/add_ons/heroku.rb