thunder_punch 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.mdown CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.0.9 (September 1, 2010)
2
+
3
+ * Fix role on database tasks - was :database, should be :db to fit conventions
4
+
1
5
  == 0.0.8 (September 1, 2010)
2
6
 
3
7
  * Fix a recipe in thinking sphinx that was causing it to be run on app servers. It should only be run on servers defined as workers due to the fact it actually calls out to the db server to run the sphinx tasks [Bob Burbach - github.com/peregrinator]
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -5,7 +5,7 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
 
6
6
  namespace :database do
7
7
  desc "Check to see if database exists"
8
- task :check_database_existence, :roles => [:database], :only => { :primary => true } do
8
+ task :check_database_existence, :roles => [:db], :only => { :primary => true } do
9
9
  db_exists = false
10
10
  run "mysql -u root -e \"SELECT COUNT(SCHEMA_NAME) FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '#{database_to_check}';\" --batch --reconnect --show-warning --silent" do |ch, stream, data|
11
11
  if stream == :err
@@ -31,7 +31,7 @@ Capistrano::Configuration.instance(:must_exist).load do
31
31
 
32
32
  namespace :database do
33
33
  desc "Dump the current database"
34
- task :backup, :roles => [:database], :only => { :primary => true } do
34
+ task :backup, :roles => [:db], :only => { :primary => true } do
35
35
  set :database_to_check, remote_db_name # used by the check_database_existence task
36
36
  db_exists = find_and_execute_task('database:check_database_existence')
37
37
 
@@ -51,20 +51,20 @@ Capistrano::Configuration.instance(:must_exist).load do
51
51
  namespace :database do
52
52
 
53
53
  desc "Backup remote database and load locally"
54
- task :load_remote, :roles => [:database], :only => { :primary => true } do
54
+ task :load_remote, :roles => [:db], :only => { :primary => true } do
55
55
  backup
56
56
  copy
57
57
  load_copy
58
58
  end
59
59
 
60
60
  desc "Copy the current database"
61
- task :copy, :roles => [:database], :only => { :primary => true } do
61
+ task :copy, :roles => [:db], :only => { :primary => true } do
62
62
  `mkdir -p tmp`
63
63
  download(sql_file_path, "tmp/", :via=> :scp)
64
64
  end
65
65
 
66
66
  desc "Load the staging database locally"
67
- task :load_copy, :roles => [:database], :only => { :primary => true } do
67
+ task :load_copy, :roles => [:db], :only => { :primary => true } do
68
68
  `script/dbconsole -p < tmp/#{remote_db_name}.sql`
69
69
  end
70
70
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{thunder_punch}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Bob Burbach"]
12
- s.date = %q{2010-09-01}
12
+ s.date = %q{2010-09-07}
13
13
  s.description = %q{Collection of capistano recipes for deployment and server tasks}
14
14
  s.email = %q{info@criticaljuncture.org}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bob Burbach
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-01 00:00:00 -07:00
17
+ date: 2010-09-07 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency