deprec 3.1.0.rc11 → 3.1.0.rc12

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
  deprec changelog
2
2
  ================
3
3
 
4
+ = 3.1.0.rc12 (Jul 22, 2011)
5
+
6
+ * Added TEMPLATE_LOAD_PATH so deprec-core can locate templates
7
+
4
8
  = 3.1.0.rc11 (Jul 18, 2011)
5
9
 
6
10
  * require 'deprec-core' from each recipe so they can be loaded individually.
data/bin/depify CHANGED
File without changes
@@ -1,4 +1,9 @@
1
+ TEMPLATE_LOAD_PATH = []
2
+ TEMPLATE_LOAD_PATH << File.expand_path(
3
+ File.join(File.dirname(__FILE__),'deprec','templates')
4
+ )
1
5
  require 'deprec-core'
6
+
2
7
  if defined?(Capistrano)
3
8
  Dir.glob("#{File.dirname(__FILE__)}/deprec/recipes/*.rb").each { |t| require t }
4
9
  elsif defined?(Rake)
@@ -83,19 +83,19 @@ Capistrano::Configuration.instance(:must_exist).load do
83
83
 
84
84
 
85
85
  task :start, :roles => :web do
86
- send(run_method, "/etc/init.d/example reload")
86
+ run "#{sudo} /etc/init.d/example reload"
87
87
  end
88
88
 
89
89
  task :stop, :roles => :web do
90
- send(run_method, "/etc/init.d/example reload")
90
+ run "#{sudo} /etc/init.d/example reload"
91
91
  end
92
92
 
93
93
  task :restart, :roles => :web do
94
- send(run_method, "/etc/init.d/example restart")
94
+ run "#{sudo} /etc/init.d/example restart"
95
95
  end
96
96
 
97
97
  task :reload, :roles => :web do
98
- send(run_method, "/etc/init.d/example reload")
98
+ run "#{sudo} /etc/init.d/example reload"
99
99
  end
100
100
 
101
101
  task :activate, :roles => :web do
@@ -112,4 +112,4 @@ Capistrano::Configuration.instance(:must_exist).load do
112
112
 
113
113
  end
114
114
  end
115
- end
115
+ end
@@ -40,22 +40,22 @@ Capistrano::Configuration.instance(:must_exist).load do
40
40
 
41
41
  desc "Start ssh"
42
42
  task :start do
43
- send(run_method, "/etc/init.d/ssh reload")
43
+ run "#{sudo} /etc/init.d/ssh reload"
44
44
  end
45
45
 
46
46
  desc "Stop ssh"
47
47
  task :stop do
48
- send(run_method, "/etc/init.d/ssh reload")
48
+ run "#{sudo} /etc/init.d/ssh reload"
49
49
  end
50
50
 
51
51
  desc "Restart ssh"
52
52
  task :restart do
53
- send(run_method, "/etc/init.d/ssh restart")
53
+ run "#{sudo} /etc/init.d/ssh restart"
54
54
  end
55
55
 
56
56
  desc "Reload ssh"
57
57
  task :reload do
58
- send(run_method, "/etc/init.d/ssh reload")
58
+ run "#{sudo} /etc/init.d/ssh reload"
59
59
  end
60
60
 
61
61
  desc "Sets up authorized_keys file on remote server"
@@ -104,7 +104,7 @@ Capistrano::Configuration.instance(:must_exist).load do
104
104
  # copy keys to remote server
105
105
  deprec2.mkdir "/home/#{target_user}/.ssh", :mode => 0700, :owner => "#{target_user}.users", :via => :sudo
106
106
  std.su_put keys, "/home/#{target_user}/.ssh/authorized_keys", '/tmp/', :mode => 0600
107
- sudo "chown #{target_user}.users /home/#{target_user}/.ssh/authorized_keys"
107
+ run "#{sudo} chown #{target_user}.users /home/#{target_user}/.ssh/authorized_keys"
108
108
  end
109
109
 
110
110
  end
@@ -34,6 +34,17 @@ Capistrano::Configuration.instance(:must_exist).load do
34
34
  sudo "rm /var/lib/apt/lists/lock"
35
35
  # XXX There's one more - add it!
36
36
  end
37
+
38
+ desc "Remove consolekit"
39
+ task :remove_consolekit, :roles => :ubuntu do
40
+ run "#{sudo} apt-get remove consolekit"
41
+ run "#{sudo} apt-get remove dbus"
42
+ end
43
+
44
+ desc "Remove crap that doesn't belong on a server"
45
+ task :trim, :roles => :ubuntu do
46
+ remove_consolekit
47
+ end
37
48
 
38
49
  end
39
50
  end
@@ -32,7 +32,7 @@ Capistrano::Configuration.instance(:must_exist).load do
32
32
  Array(users_target_user).each do |user|
33
33
 
34
34
  deprec2.groupadd(users_target_group)
35
- deprec2.useradd(user, :group => group, :shell => '/bin/bash')
35
+ deprec2.useradd(user, :group => users_target_group, :shell => '/bin/bash')
36
36
  deprec2.invoke_with_input("passwd #{user}", /UNIX password/, new_password)
37
37
 
38
38
  if users_make_admin.match(/y/i)
@@ -34,3 +34,5 @@ alias tc='time curl -s -o /dev/null'
34
34
 
35
35
  # Load rubygems
36
36
  alias irb="irb -I '.' -rubygems"
37
+
38
+ alias ssm="ssh -l $USER"
@@ -29,17 +29,19 @@
29
29
  # Enable caching of assets containing a fingerprint
30
30
  # Browsers need never check for newer versions of an
31
31
  # asset because the fingerprint would be different.
32
- <FilesMatch "/assets/[^.]+-[a-z0-9]{32}\.">
33
- # Add far-future expiration dates
34
- <IfModule mod_expires.c>
35
- ExpiresActive On
36
- ExpiresDefault "access plus 10 years"
37
- </IfModule>
38
- # Disable ETags
39
- <IfModule mod_expires.c>
40
- Header unset "ETag"
41
- </IfModule>
42
- </FilesMatch>
32
+ <Directory <%= passenger_document_root %>/public/assets>
33
+ <FilesMatch "[^.]+-[a-z0-9]{32}\.">
34
+ # Add far-future expiration dates
35
+ <IfModule mod_expires.c>
36
+ ExpiresActive On
37
+ ExpiresDefault "access plus 10 years"
38
+ </IfModule>
39
+ # Disable ETags
40
+ <IfModule mod_headers.c>
41
+ Header unset "ETag"
42
+ </IfModule>
43
+ </FilesMatch>
44
+ </Directory>
43
45
 
44
46
  # Check for maintenance file and redirect all requests
45
47
  RewriteEngine On
@@ -1,3 +1,3 @@
1
1
  module Deprec
2
- VERSION = "3.1.0.rc11"
2
+ VERSION = "3.1.0.rc12"
3
3
  end
metadata CHANGED
@@ -1,59 +1,58 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.0.rc12
4
5
  prerelease: 6
5
- version: 3.1.0.rc11
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Mike Bailey
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-07-18 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2011-07-22 00:00:00.000000000 +10:00
13
+ default_executable: depify
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
16
  name: deprec-core
17
- prerelease: false
18
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &11350820 !ruby/object:Gem::Requirement
19
18
  none: false
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
23
22
  version: 3.1.4
24
23
  type: :runtime
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
27
- name: capistrano
28
24
  prerelease: false
29
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *11350820
26
+ - !ruby/object:Gem::Dependency
27
+ name: capistrano
28
+ requirement: &11350280 !ruby/object:Gem::Requirement
30
29
  none: false
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
34
33
  version: 2.6.0
35
34
  type: :runtime
36
- version_requirements: *id002
37
- - !ruby/object:Gem::Dependency
38
- name: capistrano-ext
39
35
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *11350280
37
+ - !ruby/object:Gem::Dependency
38
+ name: capistrano-ext
39
+ requirement: &11349820 !ruby/object:Gem::Requirement
41
40
  none: false
42
- requirements:
43
- - - ">="
44
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
45
44
  version: 1.2.1
46
45
  type: :runtime
47
- version_requirements: *id003
48
- description: " This project provides Capistrano and Rake tasks to \n assist with deployment and configuration management\n on ubuntu linux servers.\n"
46
+ prerelease: false
47
+ version_requirements: *11349820
48
+ description: ! " This project provides Capistrano and Rake tasks to \n assist
49
+ with deployment and configuration management\n on ubuntu linux servers.\n"
49
50
  email: mike@bailey.net.au
50
- executables:
51
+ executables:
51
52
  - depify
52
53
  extensions: []
53
-
54
54
  extra_rdoc_files: []
55
-
56
- files:
55
+ files:
57
56
  - bin/hosts.rb
58
57
  - bin/depify
59
58
  - docs/TODO.txt
@@ -239,32 +238,29 @@ files:
239
238
  - LICENSE
240
239
  - README.md
241
240
  - THANKS
241
+ has_rdoc: true
242
242
  homepage: http://deprec.org/
243
243
  licenses: []
244
-
245
244
  post_install_message:
246
245
  rdoc_options: []
247
-
248
- require_paths:
246
+ require_paths:
249
247
  - lib
250
- required_ruby_version: !ruby/object:Gem::Requirement
248
+ required_ruby_version: !ruby/object:Gem::Requirement
251
249
  none: false
252
- requirements:
253
- - - ">="
254
- - !ruby/object:Gem::Version
255
- version: "0"
256
- required_rubygems_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ! '>='
252
+ - !ruby/object:Gem::Version
253
+ version: '0'
254
+ required_rubygems_version: !ruby/object:Gem::Requirement
257
255
  none: false
258
- requirements:
259
- - - ">"
260
- - !ruby/object:Gem::Version
256
+ requirements:
257
+ - - ! '>'
258
+ - !ruby/object:Gem::Version
261
259
  version: 1.3.1
262
260
  requirements: []
263
-
264
261
  rubyforge_project: deprec
265
- rubygems_version: 1.8.5
262
+ rubygems_version: 1.6.2
266
263
  signing_key:
267
264
  specification_version: 3
268
265
  summary: deployment recipes for capistrano
269
266
  test_files: []
270
-