Sha256: f4e707a52cf0df5a5d7c09205371426b1c027cd0a44eadea1cde6c20f14dbc7f

Contents?: true

Size: 373 Bytes

Versions: 19

Compression:

Stored size: 373 Bytes

Contents

module Vpsb
  module Resources
    class UnicornWorkerProcesses < BaseAskResource
      res :unicorn_worker_processes
      question 'How many unicorn worker processes setup (Default 4)?'
      default  '4'

      private

      def validate
        Proc.new do |answer|
          next true if answer.empty?
          answer.to_i > 0
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
vpsb-1.1.8 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.7 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.6 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.5 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.4 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.3 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.2 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.1 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.1.0 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.9 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.8 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.7 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.6 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.5 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.4 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.3 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.2 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.1 lib/vpsb/resources/unicorn_worker_processes.rb
vpsb-1.0.0 lib/vpsb/resources/unicorn_worker_processes.rb