Class: Hoboken::AddOns::Heroku

Inherits:
Group
  • Object
show all
Defined in:
lib/hoboken/add_ons/heroku.rb

Overview

Heroku deployment support.

Instance Method Summary collapse

Methods inherited from Group

#classic?, #modular?, #rspec?, #rubocop?, #sequel?, source_root

Methods included from Hoboken::Actions

#gem, #indent

Instance Method Details

#fix_stdout_for_loggingObject



14
15
16
17
18
# File 'lib/hoboken/add_ons/heroku.rb', line 14

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

#remindersObject



20
21
22
23
24
25
26
# File 'lib/hoboken/add_ons/heroku.rb', line 20

def reminders
  say <<~TEXT
    Ready to deploy to Heroku. See the Heroku docs[1] for details.

    [1]: https://devcenter.heroku.com/articles/rack
  TEXT
end

#slugignoreObject



8
9
10
11
12
# File 'lib/hoboken/add_ons/heroku.rb', line 8

def slugignore
  create_file('.slugignore') do
    "spec\ntags\n/test\n/tmp"
  end
end