Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aratak committed Jun 23, 2013
1 parent c3ff9ba commit 2c2b952
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions lib/soprano/puma.rb
Expand Up @@ -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}"
Expand All @@ -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

0 comments on commit 2c2b952

Please sign in to comment.