lib/capistrano/helpers/puma/nginx.rb in capistrano-pumaio-3.0.1 vs lib/capistrano/helpers/puma/nginx.rb in capistrano-pumaio-3.0.2
- old
+ new
@@ -1,8 +1,13 @@
module Capistrano
module Helpers
module Puma
+ ##
+ # Module Nginx provides helper functions for nginx configuration
+ ##
module Nginx
+ module_function
+
def default_pw_generator
pw = SecureRandom.random_number(36**10).to_s(36).rjust(10, '0')
info "Random password generated: #{pw}"
pw
end