Class: OdaniaStaticPages::DeployCli
- Inherits:
-
Thor
- Object
- Thor
- OdaniaStaticPages::DeployCli
- Defined in:
- lib/odania_static_pages/cli/deploy_cli.rb
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
4 5 6 7 8 |
# File 'lib/odania_static_pages/cli/deploy_cli.rb', line 4 def init config = OdaniaStaticPages.config deploy_module = "OdaniaStaticPages::Deploy::#{config.current_environment.deploy_type}".constantize.new deploy_module.prepare end |
#publish(color = nil, do_rebuild = false) ⇒ Object
11 12 13 14 15 |
# File 'lib/odania_static_pages/cli/deploy_cli.rb', line 11 def publish(color=nil, do_rebuild=false) config = OdaniaStaticPages.config deploy_module = "OdaniaStaticPages::Deploy::#{config.current_environment.deploy_type}".constantize.new deploy_module.publish(color, do_rebuild) end |