64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# File 'lib/jets/builders/gem_replacer.rb', line 64
def missing_gems_message
template = "Your project requires compiled gems were not available in any of your lambdagems sources. Unavailable pre-compiled gems:\n<% missing_gems.each do |gem| %>\n* <%= gem -%>\n<% end %>\n\nYour current lambdagems sources:\n<% Jets.config.lambdagems.sources.map do |source| %>\n* <%= source -%>\n<% end %>\n\nJets is unable to build a deployment package that will work on AWS Lambda without the required pre-compiled gems. To remedy this, you can:\n\n* Build the gem yourself and add it to your own custom lambdagems sources. Refer to the Lambda Gems Docs: http://rubyonjets.com/docs/lambdagems\n* Wait until it added to lambdagems.com. No need to report this to us, as we've already been notified.\n* Use another gem that does not require compilation.\n\nCompiled gems usually take some time to figure out how to build as they each depend on different libraries and packages. We make an effort add new gems as soon as we can. You can support us by going to: http://rubyonjets.com/support-jets/\n"
erb = ERB.new(template, nil, '-')
erb.result(binding)
end
|