meow-deploy 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,13 @@ module MeowDeploy
37
37
 
38
38
  run "mkdir -p #{god_sites_path}"
39
39
  end
40
+
41
+ namespace :db do
42
+ desc "Create the indexes defined on your mongoid models"
43
+ task :create_mongoid_indexes do
44
+ run "cd #{current_path} && bundle exec rake db:mongoid:create_indexes RAILS_ENV=production"
45
+ end
46
+ end
40
47
 
41
48
  namespace :god do
42
49
  desc "Reload god config"
@@ -79,20 +86,25 @@ module MeowDeploy
79
86
  namespace :tail do
80
87
  desc "Tail production log files"
81
88
  task :production, :roles => :app do
82
- run "tail -f #{shared_path}/log/production.log" do |channel, stream, data|
83
- trap("INT") { puts 'Interupted'; exit 0; }
84
- puts "#{data}"
85
- break if stream == :err
86
- end
89
+ tail_log "production.log"
87
90
  end
88
91
 
89
92
  desc "Tail god log files"
90
93
  task :god, :roles => :app do
91
- run "tail -f #{shared_path}/log/god.log" do |channel, stream, data|
92
- trap("INT") { puts 'Interupted'; exit 0; }
93
- puts "#{data}"
94
- break if stream == :err
95
- end
94
+ tail_log "god.log"
95
+ end
96
+
97
+ desc "Tail cron log files"
98
+ task :cron, :roles => :app do
99
+ tail_log "cron.log"
100
+ end
101
+ end
102
+
103
+ def tail_log(log)
104
+ run "tail -f #{shared_path}/log/#{log}" do |channel, stream, data|
105
+ trap("INT") { puts 'Interupted'; exit 0; }
106
+ puts "#{data}"
107
+ break if stream == :err
96
108
  end
97
109
  end
98
110
  end
@@ -1,3 +1,3 @@
1
1
  module MeowDeploy
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meow-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-17 00:00:00.000000000 Z
12
+ date: 2012-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano