Sha256: 053cda6d5d58ca8fce08c9e1e58aadb8878fbd69eb3cea1544a1ab4672605433
Contents?: true
Size: 498 Bytes
Versions: 11
Compression:
Stored size: 498 Bytes
Contents
class ForgeCLI::PostPostHooks < ForgeCLI::PostHooks def run! add_routes add_controller_module end def add_routes STDOUT.puts "Adding Routes..." ri = ForgeCLI::RouteInstaller.new(@app, module_path) ri.install_routes ri.install_routes(:forge) end def add_controller_module STDOUT.puts "Adding Posts controller methods..." cmi = ForgeCLI::ControllerModuleIncluder.new(@app, 'posts') cmi.run! end def module_path File.dirname(__FILE__) end end
Version data entries
11 entries across 11 versions & 1 rubygems