thunder_punch 0.0.6 → 0.0.7

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.
data/CHANGELOG.mdown CHANGED
@@ -1,3 +1,13 @@
1
+ == 0.0.7 (August 26, 2010)
2
+
3
+ * Add a site recipe for uploading a maintenance page (assumes you've set up apache or nginx to watch for this page.)
4
+
5
+ == 0.0.6 (July 6, 2010)
6
+
7
+ * Fix problems with the code implementing git-based deployment strategy
8
+ * Add a SASS task to compile stylesheets
9
+ * Add a varnish task to clear the cache
10
+
1
11
  == 0.0.5 (June 28, 2010)
2
12
 
3
13
  * Rename example config to amazon.yml [Bob Burbach - github.com/peregrinator]
data/Rakefile CHANGED
@@ -7,8 +7,8 @@ begin
7
7
  gem.name = "thunder_punch"
8
8
  gem.summary = "Collection of capistano recipes for deployment and server tasks"
9
9
  gem.description = "Collection of capistano recipes for deployment and server tasks"
10
- gem.email = "govpulse@gmail.com"
11
- gem.homepage = "http://github.com/trifecta/thunder_punch"
10
+ gem.email = "info@criticaljuncture.org"
11
+ gem.homepage = "http://github.com/critical/thunder_punch"
12
12
  gem.authors = ["Bob Burbach"]
13
13
  gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
14
14
  gem.add_dependency('capistrano', '>= 2.5.5')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -0,0 +1,35 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+
6
+ <head>
7
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
8
+ <title>We're sorry, but we're currently offline</title>
9
+ <style type="text/css">
10
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
11
+ div.dialog {
12
+ width: 25em;
13
+ padding: 0 4em;
14
+ margin: 4em auto 0 auto;
15
+ border: 1px solid #ccc;
16
+ border-right-color: #999;
17
+ border-bottom-color: #999;
18
+ }
19
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
20
+ </style>
21
+ </head>
22
+
23
+ <body>
24
+ <div class="dialog">
25
+ <h1>
26
+ We're currently offline for <%= reason ? reason : "maintenance" %>
27
+ as of <%= Time.now.strftime("%I:%M %p %Z" ) %>.
28
+ </h1>
29
+ <p>
30
+ Sorry for the inconvenience. We'll be back <%= deadline ? "by #{deadline}" : "shortly" %>.
31
+ Please contact your administrator if you believe this to be an error.
32
+ </p>
33
+ </div>
34
+ </body>
35
+ </html>
@@ -0,0 +1,23 @@
1
+ Capistrano::Configuration.instance(:must_exist).load do
2
+
3
+ namespace :site do
4
+ desc "Serve up a custom maintenance page."
5
+ task :disable, :roles => [:app] do
6
+ require 'erb'
7
+ on_rollback { delete "#{shared_path}/system/maintenance.html" }
8
+ reason = ENV['REASON' ]
9
+ deadline = ENV['UNTIL' ]
10
+
11
+ template = File.join(File.dirname(__FILE__), "..", "..", "..", "files", 'app', 'maintenance.html.erb')
12
+ page = ERB.new(File.read(template)).result(binding)
13
+
14
+ upload_string page, "#{shared_path}/system/maintenance.html", :via => :scp, :mode => 644
15
+ end
16
+
17
+ desc "Serve up a custom maintenance page."
18
+ task :enable, :roles => :web do
19
+ run "rm #{shared_path}/system/maintenance.html"
20
+ end
21
+ end #end namespace
22
+
23
+ end
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{thunder_punch}
8
- s.version = "0.0.6"
8
+ s.version = "0.0.7"
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-07-06}
12
+ s.date = %q{2010-08-26}
13
13
  s.description = %q{Collection of capistano recipes for deployment and server tasks}
14
- s.email = %q{govpulse@gmail.com}
14
+ s.email = %q{info@criticaljuncture.org}
15
15
  s.extra_rdoc_files = [
16
16
  "README.mdown"
17
17
  ]
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  "TODO.mdown",
27
27
  "VERSION",
28
28
  "example/amazon.yml",
29
+ "files/app/maintenance.html.erb",
29
30
  "lib/recipes.rb",
30
31
  "lib/recipes/bundler.rb",
31
32
  "lib/recipes/database.rb",
@@ -40,6 +41,7 @@ Gem::Specification.new do |s|
40
41
  "lib/recipes/less/less.rb",
41
42
  "lib/recipes/sass.rb",
42
43
  "lib/recipes/sass/compile.rb",
44
+ "lib/recipes/site.rb",
43
45
  "lib/recipes/thinking_sphinx.rb",
44
46
  "lib/recipes/varnish.rb",
45
47
  "lib/recipes/varnish/cache.rb",
@@ -49,7 +51,7 @@ Gem::Specification.new do |s|
49
51
  "test/test_thunder_punch.rb",
50
52
  "thunder_punch.gemspec"
51
53
  ]
52
- s.homepage = %q{http://github.com/trifecta/thunder_punch}
54
+ s.homepage = %q{http://github.com/critical/thunder_punch}
53
55
  s.rdoc_options = ["--charset=UTF-8"]
54
56
  s.require_paths = ["lib"]
55
57
  s.rubygems_version = %q{1.3.6}
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
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-07-06 00:00:00 -07:00
17
+ date: 2010-08-26 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -44,7 +44,7 @@ dependencies:
44
44
  type: :runtime
45
45
  version_requirements: *id002
46
46
  description: Collection of capistano recipes for deployment and server tasks
47
- email: govpulse@gmail.com
47
+ email: info@criticaljuncture.org
48
48
  executables: []
49
49
 
50
50
  extensions: []
@@ -62,6 +62,7 @@ files:
62
62
  - TODO.mdown
63
63
  - VERSION
64
64
  - example/amazon.yml
65
+ - files/app/maintenance.html.erb
65
66
  - lib/recipes.rb
66
67
  - lib/recipes/bundler.rb
67
68
  - lib/recipes/database.rb
@@ -76,6 +77,7 @@ files:
76
77
  - lib/recipes/less/less.rb
77
78
  - lib/recipes/sass.rb
78
79
  - lib/recipes/sass/compile.rb
80
+ - lib/recipes/site.rb
79
81
  - lib/recipes/thinking_sphinx.rb
80
82
  - lib/recipes/varnish.rb
81
83
  - lib/recipes/varnish/cache.rb
@@ -85,7 +87,7 @@ files:
85
87
  - test/test_thunder_punch.rb
86
88
  - thunder_punch.gemspec
87
89
  has_rdoc: true
88
- homepage: http://github.com/trifecta/thunder_punch
90
+ homepage: http://github.com/critical/thunder_punch
89
91
  licenses: []
90
92
 
91
93
  post_install_message: