Class: Railshoster::Capistrano::Config
- Inherits:
-
Object
- Object
- Railshoster::Capistrano::Config
- Defined in:
- lib/railshoster/capistrano/config.rb
Overview
Strategy to generate a capistrano config for a shared hosting
Class Method Summary collapse
- .render_deploy_rb_for_capistrano_2_to_s(application_hash) ⇒ Object
-
.render_deploy_rb_for_capistrano_3_to_s(application_hash) ⇒ Object
Static.
Class Method Details
.render_deploy_rb_for_capistrano_2_to_s(application_hash) ⇒ Object
17 18 19 20 21 |
# File 'lib/railshoster/capistrano/config.rb', line 17 def self.render_deploy_rb_for_capistrano_2_to_s(application_hash) deployrb_template = File.read(File.join(File.dirname(__FILE__), "../../../templates/h/deploy_version_2.rb.erb")) eruby = Erubis::Eruby.new(deployrb_template) eruby.result(:app => application_hash) end |
.render_deploy_rb_for_capistrano_3_to_s(application_hash) ⇒ Object
Static
11 12 13 14 15 |
# File 'lib/railshoster/capistrano/config.rb', line 11 def self.render_deploy_rb_for_capistrano_3_to_s(application_hash) deployrb_template = File.read(File.join(File.dirname(__FILE__), "../../../templates/h/deploy_version_3.rb.erb")) eruby = Erubis::Eruby.new(deployrb_template) eruby.result(:app => application_hash) end |