itrigga-cap_deploy 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
@@ -88,11 +88,17 @@ configuration.load do
88
88
 
89
89
  task :regenerate_monit do
90
90
  puts "regenerating monit config file(s)"
91
- run "test -d #{shared_dir}/templates || mkdir -p #{shared_dir}/templates"
92
-
93
- run "cd #{web_dir} && #{sudo} rake itrigga:generator RAILS_ENV=#{stage} APPLICATION_NAME=#{application_stub} PATTERN=monit TEMPLATE_DIR=#{web_dir}/script/templates OUTPUT_DIR=#{shared_dir}/templates CONFIG_FILE=`readlink /etc/#{config_file_name}` BASE_DIR=#{shared_dir}"
91
+ monit_template_dir = "#{shared_dir}/templates/monit"
92
+
93
+ # remove existing dir (clean out existing files)
94
+ run "if [ -d #{monit_template_dir} ]; then #{sudo} rm -rf #{monit_template_dir}; fi"
95
+
96
+ # create / recreate dir
97
+ run "if [ ! -d #{monit_template_dir} ]; then #{sudo} mkdir -p #{monit_template_dir}; fi"
98
+
99
+ run "cd #{web_dir} && #{sudo} rake itrigga:generator RAILS_ENV=#{stage} APPLICATION_NAME=#{application_stub} PATTERN=monit TEMPLATE_DIR=#{web_dir}/script/templates OUTPUT_DIR=#{monit_template_dir} CONFIG_FILE=`readlink /etc/#{config_file_name}` BASE_DIR=#{shared_dir}"
94
100
  puts "setting permissions & ownership on monit config files"
95
- set_permissions_on_files_in_dir( :dir=>"#{shared_dir}/templates", :ownership=>"root", :permissions=>"0700")
101
+ set_permissions_on_files_in_dir( :dir=>monit_template_dir, :ownership=>"root", :permissions=>"0700")
96
102
 
97
103
  end
98
104
 
@@ -100,7 +106,7 @@ configuration.load do
100
106
  remove_dir_if_exists("/etc/monit/conf.d/#{application_stub}")
101
107
  sudo "mkdir /etc/monit/conf.d/#{application_stub}"
102
108
  puts "re-symlinking monit config files"
103
- symlink_files_in_dir_by_regex("#{shared_dir}/templates","/etc/monit/conf.d/#{application_stub}",".*monit$")
109
+ symlink_files_in_dir_by_regex("#{shared_dir}/templates/monit","/etc/monit/conf.d/#{application_stub}",".*monit$")
104
110
 
105
111
  # overwrite the default monit monitrc file to just have the includes for the conf.d dir
106
112
  run "(test -f /etc/monit/monitrc && #{sudo} rm -f /etc/monit/monitrc) || echo no existing monitrc file"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrigga-cap_deploy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Al Davidson
@@ -15,14 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-25 00:00:00 +01:00
19
- default_executable:
18
+ date: 2011-11-02 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- name: bundler
24
- type: :development
25
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ requirement: &id001 !ruby/object:Gem::Requirement
26
22
  none: false
27
23
  requirements:
28
24
  - - ~>
@@ -33,12 +29,12 @@ dependencies:
33
29
  - 0
34
30
  - 0
35
31
  version: 1.0.0
36
- requirement: *id001
37
- - !ruby/object:Gem::Dependency
32
+ version_requirements: *id001
33
+ name: bundler
38
34
  prerelease: false
39
- name: jeweler
40
35
  type: :development
41
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ - !ruby/object:Gem::Dependency
37
+ requirement: &id002 !ruby/object:Gem::Requirement
42
38
  none: false
43
39
  requirements:
44
40
  - - ~>
@@ -49,12 +45,12 @@ dependencies:
49
45
  - 6
50
46
  - 4
51
47
  version: 1.6.4
52
- requirement: *id002
53
- - !ruby/object:Gem::Dependency
48
+ version_requirements: *id002
49
+ name: jeweler
54
50
  prerelease: false
55
- name: rcov
56
51
  type: :development
57
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ - !ruby/object:Gem::Dependency
53
+ requirement: &id003 !ruby/object:Gem::Requirement
58
54
  none: false
59
55
  requirements:
60
56
  - - ">="
@@ -63,12 +59,12 @@ dependencies:
63
59
  segments:
64
60
  - 0
65
61
  version: "0"
66
- requirement: *id003
67
- - !ruby/object:Gem::Dependency
62
+ version_requirements: *id003
63
+ name: rcov
68
64
  prerelease: false
69
- name: jeweler
70
65
  type: :development
71
- version_requirements: &id004 !ruby/object:Gem::Requirement
66
+ - !ruby/object:Gem::Dependency
67
+ requirement: &id004 !ruby/object:Gem::Requirement
72
68
  none: false
73
69
  requirements:
74
70
  - - ~>
@@ -79,12 +75,12 @@ dependencies:
79
75
  - 6
80
76
  - 4
81
77
  version: 1.6.4
82
- requirement: *id004
83
- - !ruby/object:Gem::Dependency
78
+ version_requirements: *id004
79
+ name: jeweler
84
80
  prerelease: false
85
- name: rspec
86
81
  type: :development
87
- version_requirements: &id005 !ruby/object:Gem::Requirement
82
+ - !ruby/object:Gem::Dependency
83
+ requirement: &id005 !ruby/object:Gem::Requirement
88
84
  none: false
89
85
  requirements:
90
86
  - - ">="
@@ -93,12 +89,12 @@ dependencies:
93
89
  segments:
94
90
  - 0
95
91
  version: "0"
96
- requirement: *id005
97
- - !ruby/object:Gem::Dependency
92
+ version_requirements: *id005
93
+ name: rspec
98
94
  prerelease: false
99
- name: capistrano
100
95
  type: :development
101
- version_requirements: &id006 !ruby/object:Gem::Requirement
96
+ - !ruby/object:Gem::Dependency
97
+ requirement: &id006 !ruby/object:Gem::Requirement
102
98
  none: false
103
99
  requirements:
104
100
  - - ">="
@@ -107,12 +103,12 @@ dependencies:
107
103
  segments:
108
104
  - 0
109
105
  version: "0"
110
- requirement: *id006
111
- - !ruby/object:Gem::Dependency
106
+ version_requirements: *id006
107
+ name: capistrano
112
108
  prerelease: false
113
- name: capistrano-ext
114
109
  type: :development
115
- version_requirements: &id007 !ruby/object:Gem::Requirement
110
+ - !ruby/object:Gem::Dependency
111
+ requirement: &id007 !ruby/object:Gem::Requirement
116
112
  none: false
117
113
  requirements:
118
114
  - - ">="
@@ -121,7 +117,10 @@ dependencies:
121
117
  segments:
122
118
  - 0
123
119
  version: "0"
124
- requirement: *id007
120
+ version_requirements: *id007
121
+ name: capistrano-ext
122
+ prerelease: false
123
+ type: :development
125
124
  description: "Provides\n - handy filesystem utility methods\n - common capistrano tasks\n - common hooks for deployment \n "
126
125
  email: aldavidson@itrigga.com
127
126
  executables: []
@@ -145,7 +144,6 @@ files:
145
144
  - placeholder.txt
146
145
  - test/helper.rb
147
146
  - test/test_itrigga-cap_deploy.rb
148
- has_rdoc: true
149
147
  homepage: http://gems.itrigga.com/itrigga-cap_deploy
150
148
  licenses:
151
149
  - MIT
@@ -177,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
175
  requirements: []
178
176
 
179
177
  rubyforge_project:
180
- rubygems_version: 1.4.2
178
+ rubygems_version: 1.8.11
181
179
  signing_key:
182
180
  specification_version: 3
183
181
  summary: Common deployment tasks