dark-capistrano-recipes 0.8.2 → 0.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.8.2
1
+ 0.8.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{dark-capistrano-recipes}
8
- s.version = "0.8.2"
8
+ s.version = "0.8.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Phil Misiowiec}, %q{Leonardo Bighetti}, %q{Rogerio Augusto}]
12
- s.date = %q{2011-08-06}
12
+ s.date = %q{2011-08-10}
13
13
  s.description = %q{Extend the Capistrano gem with these useful recipes}
14
14
  s.email = %q{leonardobighetti@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -1,18 +1,19 @@
1
1
  Capistrano::Configuration.instance.load do
2
2
  set :shared_children, %w(system log pids config)
3
-
3
+
4
4
  namespace :deploy do
5
5
  desc "|capistrano-recipes| Deploy it, github-style."
6
6
  task :default, :roles => :app, :except => { :no_release => true } do
7
7
  update
8
+ cleanup
8
9
  restart
9
10
  end
10
-
11
+
11
12
  desc "|capistrano-recipes| Destroys everything"
12
13
  task :seppuku, :roles => :app, :except => { :no_release => true } do
13
14
  run "rm -rf #{current_path}; rm -rf #{shared_path}"
14
15
  end
15
-
16
+
16
17
  desc "|capistrano-recipes| Create shared dirs"
17
18
  task :setup_dirs, :roles => :app, :except => { :no_release => true } do
18
19
  commands = shared_dirs.map do |path|
@@ -20,19 +21,19 @@ Capistrano::Configuration.instance.load do
20
21
  end
21
22
  run commands.join(" && ")
22
23
  end
23
-
24
+
24
25
  desc "|capistrano-recipes| Uploads your local config.yml to the server"
25
26
  task :configure, :roles => :app, :except => { :no_release => true } do
26
27
  generate_config('config/config.yml', "#{shared_path}/config/config.yml")
27
28
  end
28
-
29
+
29
30
  desc "|capistrano-recipes| Setup a GitHub-style deployment."
30
31
  task :setup, :roles => :app, :except => { :no_release => true } do
31
32
  run "rm -rf #{current_path}"
32
33
  setup_dirs
33
34
  run "git clone #{repository} #{current_path}"
34
35
  end
35
-
36
+
36
37
  desc "|capistrano-recipes| Update the deployed code."
37
38
  task :update_code, :roles => :app, :except => { :no_release => true } do
38
39
  run "cd #{current_path}; git fetch origin; git reset --hard #{branch}"
@@ -42,16 +43,15 @@ Capistrano::Configuration.instance.load do
42
43
  task :symlink, :roles => :app, :except => { :no_release => true } do
43
44
  symlinks.make
44
45
  end
45
-
46
+
46
47
  desc "|capistrano-recipes| Remote run for rake db:migrate"
47
48
  task :migrate, :roles => :app, :except => { :no_release => true } do
48
49
  run "cd #{current_path}; bundle exec rake RAILS_ENV=#{rails_env} db:migrate"
49
50
  end
50
51
 
51
- desc "|capistrano-recipes| [Obsolete] Nothing to cleanup when using reset --hard on git"
52
+ desc "[internal] Cleanup files such as all.css"
52
53
  task :cleanup, :roles => :app, :except => { :no_release => true } do
53
- #nothing to cleanup, we're not working with 'releases'
54
- puts "Nothing to cleanup, yay!"
54
+ run "rm #{current_path}/public/stylesheets/all.css"
55
55
  end
56
56
 
57
57
  namespace :rollback do
@@ -59,28 +59,28 @@ Capistrano::Configuration.instance.load do
59
59
  task :default, :roles => :app, :except => { :no_release => true } do
60
60
  set :branch, "HEAD^"
61
61
  deploy.default
62
- end
62
+ end
63
63
  end
64
64
 
65
65
  desc <<-DESC
66
- |capistrano-recipes| Restarts your application. This depends heavily on what server you're running.
66
+ |capistrano-recipes| Restarts your application. This depends heavily on what server you're running.
67
67
  If you are running Phusion Passenger, you can explicitly set the server type:
68
-
68
+
69
69
  set :server, :passenger
70
-
70
+
71
71
  ...which will touch tmp/restart.txt, a file monitored by Passenger.
72
72
 
73
73
  If you are running Unicorn, you can set:
74
-
74
+
75
75
  set :server, :unicorn
76
-
76
+
77
77
  ...which will use unicorn signals for restarting its workers.
78
78
 
79
79
  Otherwise, this command will call the script/process/reaper \
80
80
  script under the current path.
81
-
81
+
82
82
  If you are running with Unicorn, you can set the server type as well:
83
-
83
+
84
84
  set :server, :unicorn
85
85
 
86
86
  By default, this will be |capistrano-recipes| d via sudo as the `app' user. If \
@@ -104,3 +104,4 @@ Capistrano::Configuration.instance.load do
104
104
  end
105
105
  end
106
106
  end
107
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dark-capistrano-recipes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 2
10
- version: 0.8.2
9
+ - 3
10
+ version: 0.8.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil Misiowiec
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-08-06 00:00:00 Z
20
+ date: 2011-08-10 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  requirement: &id001 !ruby/object:Gem::Requirement