sunrise-deploy 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,18 +14,9 @@ set :repository, "#{scm_user}@somehost:~/projects/project.git"
14
14
  set :remote, "#{scm_user}"
15
15
  set :branch, "master"
16
16
 
17
- server "SERVER_IP", :app, :web, :db, :primary => true
18
-
19
- namespace :app do
20
- task :start do
21
- run "#{try_sudo} sv start #{application}"
22
- end
17
+ set :asset_precompile, true
23
18
 
24
- task :stop do
25
- run "#{try_sudo} sv stop #{application}"
26
- end
19
+ set :cache_clear, true
20
+ set :cache_paths, ["tmp/cache", "public/cache"]
27
21
 
28
- task :restart, :roles => :app, :except => { :no_release => true } do
29
- run "#{try_sudo} sv restart #{application}"
30
- end
31
- end
22
+ server "SERVER_IP", :app, :web, :db, :primary => true
@@ -5,7 +5,7 @@ module Capistrano
5
5
  namespace :cache do
6
6
  desc "Clear all cache in project by 'cache_paths': (tmp/cache, public/cache)"
7
7
  task :clear do
8
- Array.wrap(cache_paths).each do |folder|
8
+ [cache_paths].flatten.each do |folder|
9
9
  path = File.join(deploy_to, folder, "*")
10
10
  run "#{try_sudo} rm -rf #{path}"
11
11
  end
@@ -1,5 +1,5 @@
1
1
  module Sunrise
2
2
  module Deploy
3
- VERSION = "0.0.3".freeze
3
+ VERSION = "0.0.4".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sunrise-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: