Sha256: b3de7661c415df89ceeebc965ca81653902b1dca8bb7c0c861fdf7ab57f86fff

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

require 'rails/railtie'

module Hibachi
  # Default Rails config for the engine.
  class Railtie < Rails::Railtie
    config.hibachi = ActiveSupport::OrderedOptions.new

    # Configure where the Chef JSON will be stored, by default it's
    # located in the Rails config dir.
    config.hibachi.chef_json_path = "#{Rails.root}/config/chef.json"

    # Configure where to look for the Chef repo.
    config.hibachi.chef_dir = "#{Rails.root}/config/chef"

    # Configure where the log file will be kept of all Chef runs, by
    # default it's located in the Rails log dir.
    config.hibachi.log_path = "#{Rails.root}/log/hibachi.log"

    # If you're using ActiveJob, Hibachi can trigger Chef runs to queue
    # in the background. Just flip this flag to `true` and get
    # backgrounding for free.
    config.hibachi.run_in_background = false
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hibachi-0.0.1 lib/hibachi/railtie.rb
hibachi-0.0.1.pre lib/hibachi/railtie.rb