From 2c2b952b90cd2c9a9a3d323cb4f24ea7f887b8e6 Mon Sep 17 00:00:00 2001 From: Alexey Osipenko Date: Sun, 23 Jun 2013 12:08:29 +0300 Subject: [PATCH] formatting --- lib/soprano/puma.rb | 48 ++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/lib/soprano/puma.rb b/lib/soprano/puma.rb index 7b0b928..898339f 100644 --- a/lib/soprano/puma.rb +++ b/lib/soprano/puma.rb @@ -16,25 +16,25 @@ def puma_state fetch :puma_state, File.join([shared_path, "puma.state"]) end -namespace :deploy do - desc "Start application." - task :start, :roles => :app do - run "service puma start #{application}" - end - - desc "Stop application." - task :stop, :roles => :app do - run "service puma stop #{application}" - end - - desc "Restart application." - task :restart, :roles => :app do - run "service puma restart #{application}" - end - - desc "Creating config for application" - task :init_config, :roles => :app do - db_config = ERB.new <<-EOF + namespace :deploy do + desc "Start application." + task :start, :roles => :app do + run "service puma start #{application}" + end + + desc "Stop application." + task :stop, :roles => :app do + run "service puma stop #{application}" + end + + desc "Restart application." + task :restart, :roles => :app do + run "service puma restart #{application}" + end + + desc "Creating config for application" + task :init_config, :roles => :app do + db_config = ERB.new <<-EOF app_path = "#{deploy_to}" shared_path = "#{shared_path}" @@ -47,12 +47,12 @@ def puma_state state_path "#{puma_state}" activate_control_app - EOF + EOF - run "mkdir -p #{File.dirname(puma_pid)}" - put db_config.result, puma_conf - end + run "mkdir -p #{File.dirname(puma_pid)}" + put db_config.result, puma_conf + end -end + end end