Class: ForgeCLI::VideoPostHooks
Instance Method Summary
collapse
Methods inherited from PostHooks
#initialize, run!
Instance Method Details
#module_path ⇒ Object
11
12
13
|
# File 'lib/forge-cli/modules/videos/post_hooks.rb', line 11
def module_path
File.dirname(__FILE__)
end
|
#run! ⇒ Object
2
3
4
5
6
7
8
9
|
# File 'lib/forge-cli/modules/videos/post_hooks.rb', line 2
def run!
STDOUT.puts "Adding routes..."
ri = ForgeCLI::RouteInstaller.new(@app, module_path)
ri.install_routes(:forge)
STDOUT.puts "Adding config requires..."
require_addon(:videos)
end
|