standup 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Standup
2
- VERSION = '0.6.4'
2
+ VERSION = '0.6.5'
3
3
 
4
4
  def self.version
5
5
  VERSION
data/scripts/db_backup.rb CHANGED
@@ -1,20 +1,20 @@
1
1
  Standup.script :node do
2
2
  def run
3
3
  exec "s3cmd mb #{bucket}"
4
-
4
+
5
5
  update_cron '@hourly', <<-CMD, :section => name
6
- #{scripts.webapp.db.dump_command scripts.webapp.db_name} | gzip > dump.gz
7
- s3cmd put dump.gz #{path_prefix}/`date -u +%Y-%m-%d/%H-%M-%S`.gz
6
+ nice -n 10 #{scripts.webapp.db.dump_command scripts.webapp.db_name} | nice -n 10 gzip > dump.gz
7
+ nice -n 10 s3cmd put dump.gz #{path_prefix}/`date -u +%Y-%m-%d/%H-%M-%S`.gz
8
8
  rm dump.gz
9
9
  CMD
10
10
  end
11
-
11
+
12
12
  protected
13
-
13
+
14
14
  def bucket
15
15
  "s3://#{Standup::Settings.webapp.name}-#{node.name}-standup-backup"
16
16
  end
17
-
17
+
18
18
  def path_prefix
19
19
  "#{bucket}/db/#{scripts.webapp.db_name}"
20
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-03-27 00:00:00.000000000 Z
14
+ date: 2012-04-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: trollop
18
- requirement: &70283747287040 !ruby/object:Gem::Requirement
18
+ requirement: &70154357285360 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '1.16'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70283747287040
26
+ version_requirements: *70154357285360
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: i18n
29
- requirement: &70283747286540 !ruby/object:Gem::Requirement
29
+ requirement: &70154357284860 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.5.0
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70283747286540
37
+ version_requirements: *70154357284860
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: activesupport
40
- requirement: &70283747286080 !ruby/object:Gem::Requirement
40
+ requirement: &70154357284400 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ! '>='
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '3.0'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70283747286080
48
+ version_requirements: *70154357284400
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: settingslogic
51
- requirement: &70283747285620 !ruby/object:Gem::Requirement
51
+ requirement: &70154357283940 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ! '>='
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: '2.0'
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *70283747285620
59
+ version_requirements: *70154357283940
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: amazon-ec2
62
- requirement: &70283747285160 !ruby/object:Gem::Requirement
62
+ requirement: &70154357283480 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ! '>='
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: '0.9'
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70283747285160
70
+ version_requirements: *70154357283480
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: aws-s3
73
- requirement: &70283747284700 !ruby/object:Gem::Requirement
73
+ requirement: &70154357283020 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ! '>='
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: '0.5'
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70283747284700
81
+ version_requirements: *70154357283020
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: net-ssh
84
- requirement: &70283747284240 !ruby/object:Gem::Requirement
84
+ requirement: &70154357282560 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ! '>='
@@ -89,10 +89,10 @@ dependencies:
89
89
  version: '2.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *70283747284240
92
+ version_requirements: *70154357282560
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: highline
95
- requirement: &70283747283780 !ruby/object:Gem::Requirement
95
+ requirement: &70154357282100 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ! '>='
@@ -100,7 +100,7 @@ dependencies:
100
100
  version: 1.5.2
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *70283747283780
103
+ version_requirements: *70154357282100
104
104
  description: ''
105
105
  email:
106
106
  - ilia@flamefork.ru