Skip to content

Commit

Permalink
Merge pull request #21 from iuhoay/master
Browse files Browse the repository at this point in the history
mina 1.2.0
  • Loading branch information
KsiBart authored Oct 18, 2017
2 parents fa249a1 + fa3dcbd commit a8b5481
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions lib/mina/puma/tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mina-puma.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a8b5481

Please sign in to comment.