Class: Perennial::Generator::CommandEnv

Inherits:
Application::CommandEnv show all
Defined in:
lib/perennial/generator.rb

Instance Method Summary collapse

Methods inherited from Application::CommandEnv

#ask, #ask_password, #die!, execute, #yes?

Methods included from Loggable

included, #logger

Constructor Details

#initializeCommandEnv



27
28
29
# File 'lib/perennial/generator.rb', line 27

def initialize
  @generator = nil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object (protected)



37
38
39
40
41
42
43
# File 'lib/perennial/generator.rb', line 37

def method_missing(name, *args, &blk)
  if @generator && @generator.respond_to?(name)
    @generator.send(name, *args, &blk)
  else
    super
  end
end