Class: Conjure::Provision::Passenger
- Inherits:
-
Object
- Object
- Conjure::Provision::Passenger
- Defined in:
- lib/conjure/provision/passenger.rb
Instance Attribute Summary collapse
-
#ip_address ⇒ Object
readonly
Returns the value of attribute ip_address.
Instance Method Summary collapse
-
#initialize(platform, database, rails_env, options) ⇒ Passenger
constructor
A new instance of Passenger.
- #start ⇒ Object
Constructor Details
#initialize(platform, database, rails_env, options) ⇒ Passenger
Returns a new instance of Passenger.
9 10 11 12 13 14 15 16 |
# File 'lib/conjure/provision/passenger.rb', line 9 def initialize(platform, database, rails_env, ) @platform = platform @database = database @rails_env = rails_env @nginx_directives = [:nginx_directives] || {} @system_packages = [:system_packages] || [] @rubygems_version = [:rubygems_version] end |
Instance Attribute Details
#ip_address ⇒ Object (readonly)
Returns the value of attribute ip_address.
7 8 9 |
# File 'lib/conjure/provision/passenger.rb', line 7 def ip_address @ip_address end |
Instance Method Details
#start ⇒ Object
18 19 20 |
# File 'lib/conjure/provision/passenger.rb', line 18 def start @ip_address = dockerfile.build(@platform).start("/sbin/my_init", ) end |