class Vpsb::Resources::AppEnvVariables
Private Instance Methods
finalize(answer)
click to toggle source
# File lib/vpsb/resources/app_env_variables.rb, line 8 def finalize(answer) return { 'RAILS_ENV' => 'production' } if answer.empty? answer.split(';').inject({}) do |h, i| res = i.to_s.split('=') key = res.shift.to_s.strip next if key.empty? h[key] = res.join('=').to_s.strip h end end
validate()
click to toggle source
# File lib/vpsb/resources/app_env_variables.rb, line 19 def validate Proc.new { true } end