module Preseason::GeneratorContext
Attributes
context[R]
Public Class Methods
context=(context)
click to toggle source
# File lib/preseason/generator_context.rb, line 6 def context=(context) # squashes `rails new` and `bundle exec spring binstub --all` attempts # to run since we run it ourselves and the timing of `rails new` obscures # our custom post_install messages context.define_singleton_method(:run_bundle, -> {}) context.define_singleton_method(:generate_spring_binstubs, -> {}) @context = context end
Public Instance Methods
method_missing(meth, *args, &blk)
click to toggle source
# File lib/preseason/generator_context.rb, line 16 def method_missing(meth, *args, &blk) GeneratorContext.context.send meth, *args, &blk end