Sha256: 3218c764b4ee4643aa2efe1744e71f0b5a5f6cc54098d61a1175cd3848ff59d0

Contents?: true

Size: 552 Bytes

Versions: 5

Compression:

Stored size: 552 Bytes

Contents

Capistrano::Configuration.instance.load do
	namespace :maily_herald do
		desc "Stop maily_herald"
		task :stop, roles: :app do
			run "cd #{current_path}; bundle exec maily_herald --stop"
		end

		desc "Start maily_herald"
		task :start, roles: :app do
			run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec maily_herald --start" 
		end

		desc "Restart maily_herald"
		task :restart, roles: :app do
			run "cd #{current_path}; RAILS_ENV=#{rails_env} bundle exec maily_herald --restart" 
		end
	end

	after 'deploy', 'maily_herald:restart'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
maily_herald-0.9.4 lib/maily_herald/capistrano/tasks2.rb
maily_herald-0.9.3 lib/maily_herald/capistrano/tasks2.rb
maily_herald-0.9.2 lib/maily_herald/capistrano/tasks2.rb
maily_herald-0.9.1 lib/maily_herald/capistrano/tasks2.rb
maily_herald-0.8.0 lib/maily_herald/capistrano/tasks2.rb