From e3e15912e30fe6aa0b1a7b7cb8bb5308bfb8cf3f Mon Sep 17 00:00:00 2001 From: iuhoay Date: Mon, 9 Oct 2017 15:43:15 +0800 Subject: [PATCH 1/2] Upgrade mina 1.2 --- mina-puma.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mina-puma.gemspec b/mina-puma.gemspec index 1360d90..5ef8e12 100644 --- a/mina-puma.gemspec +++ b/mina-puma.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ['lib'] - spec.add_dependency 'mina', '~> 1.0.0' + spec.add_dependency 'mina', '~> 1.2.0' spec.add_dependency 'puma', '>= 2.13' spec.add_development_dependency 'bundler', '~> 1.3' From fa3dcbdc0c55340555eab3b6f8ffb94f2e9b4b88 Mon Sep 17 00:00:00 2001 From: iuhoay Date: Thu, 12 Oct 2017 15:29:31 +0800 Subject: [PATCH 2/2] environment => remote_environment --- lib/mina/puma/tasks.rake | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/mina/puma/tasks.rake b/lib/mina/puma/tasks.rake index 2f83799..846cd87 100644 --- a/lib/mina/puma/tasks.rake +++ b/lib/mina/puma/tasks.rake @@ -16,7 +16,7 @@ namespace :puma do set :puma_root_path, -> { fetch(:current_path) } desc 'Start puma' - task :start => :environment do + task start: :remote_environment do puma_port_option = "-p #{fetch(:puma_port)}" if set?(:puma_port) comment "Starting Puma..." @@ -34,33 +34,33 @@ namespace :puma do end desc 'Stop puma' - task stop: :environment do + task stop: :remote_environment do comment "Stopping Puma..." pumactl_command 'stop' command %[rm -f '#{fetch(:pumactl_socket)}'] end desc 'Restart puma' - task restart: :environment do + task restart: :remote_environment do comment "Restart Puma...." pumactl_command 'restart' end desc 'Restart puma (phased restart)' - task phased_restart: :environment do + task phased_restart: :remote_environment do comment "Restart Puma -- phased..." pumactl_command 'phased-restart' end desc 'Restart puma (hard restart)' - task hard_restart: :environment do + task hard_restart: :remote_environment do comment "Restart Puma -- hard..." invoke 'puma:stop' invoke 'puma:start' end desc 'Get status of puma' - task status: :environment do + task status: :remote_environment do comment "Puma status..." pumactl_command 'status' end