capistrano-s3 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +4 -0
- data/README.md +5 -2
- data/Rakefile +11 -1
- data/capistrano-s3.gemspec +20 -16
- data/lib/capistrano/s3.rb +2 -0
- metadata +53 -5
data/NEWS
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# capistrano-s3
|
2
2
|
|
3
|
-
>
|
3
|
+
> Enables static websites deployment to Amazon S3 website buckets using Capistrano.
|
4
|
+
|
5
|
+
[![Dependency Status](https://gemnasium.com/hooktstudios/capistrano-s3.png)](https://gemnasium.com/hooktstudios/capistrano-s3)
|
6
|
+
[![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/hooktstudios/capistrano-s3)
|
4
7
|
|
5
8
|
## Hosting your website with Amazon S3
|
6
9
|
|
@@ -61,7 +64,7 @@ Once you get this together, add a capistrano task to trigger website generation
|
|
61
64
|
```ruby
|
62
65
|
# config/deploy.rb
|
63
66
|
before 'deploy' do
|
64
|
-
run_locally "bundle exec ruby
|
67
|
+
run_locally "bundle exec ruby sinatra:export"
|
65
68
|
run_locally "bundle exec rake assetpack:build"
|
66
69
|
end
|
67
70
|
```
|
data/Rakefile
CHANGED
data/capistrano-s3.gemspec
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.authors = ['Jean-Philippe Doyle','Josh Delsman']
|
5
|
+
s.email = ['jeanphilippe.doyle@hooktstudios.com']
|
6
|
+
s.description = 'Enables static websites deployment to Amazon S3 website buckets using Capistrano.'
|
7
|
+
s.summary = 'Build and deploy a static website to Amazon S3'
|
8
|
+
s.homepage = 'http://github.com/hooktstudios/capistrano-s3'
|
9
|
+
s.licenses = ['MIT']
|
10
|
+
s.files = `git ls-files`.split($\)
|
11
|
+
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
12
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
13
|
+
s.name = 'capistrano-s3'
|
14
|
+
s.require_paths = ['lib']
|
15
|
+
s.version = '0.2.3'
|
16
16
|
|
17
17
|
# Gem dependencies
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
s.add_dependency 'aws-sdk'
|
19
|
+
s.add_dependency 'capistrano'
|
20
|
+
s.add_dependency 'mime-types'
|
21
|
+
|
22
|
+
s.add_development_dependency 'rake'
|
23
|
+
s.add_development_dependency 'rspec'
|
24
|
+
s.add_development_dependency 'mocha'
|
21
25
|
end
|
data/lib/capistrano/s3.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'capistrano'
|
1
2
|
require 'capistrano/s3/publisher'
|
2
3
|
|
3
4
|
unless Capistrano::Configuration.respond_to?(:instance)
|
@@ -10,6 +11,7 @@ Capistrano::Configuration.instance(true).load do
|
|
10
11
|
end
|
11
12
|
|
12
13
|
_cset :deployment_path, Dir.pwd.gsub("\n", "") + "/public"
|
14
|
+
_cset :bucket_write_options, :acl => :public_read
|
13
15
|
|
14
16
|
# Deployment recipes
|
15
17
|
namespace :deploy do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: aws-sdk
|
@@ -60,8 +60,56 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
none: false
|
63
|
-
|
64
|
-
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: rake
|
65
|
+
prerelease: false
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
none: false
|
72
|
+
type: :development
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
none: false
|
79
|
+
- !ruby/object:Gem::Dependency
|
80
|
+
name: rspec
|
81
|
+
prerelease: false
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ! '>='
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
none: false
|
88
|
+
type: :development
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
none: false
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: mocha
|
97
|
+
prerelease: false
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ! '>='
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
none: false
|
104
|
+
type: :development
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
none: false
|
111
|
+
description: Enables static websites deployment to Amazon S3 website buckets using
|
112
|
+
Capistrano.
|
65
113
|
email:
|
66
114
|
- jeanphilippe.doyle@hooktstudios.com
|
67
115
|
executables: []
|
@@ -101,6 +149,6 @@ rubyforge_project:
|
|
101
149
|
rubygems_version: 1.8.24
|
102
150
|
signing_key:
|
103
151
|
specification_version: 3
|
104
|
-
summary:
|
152
|
+
summary: Build and deploy a static website to Amazon S3
|
105
153
|
test_files: []
|
106
154
|
has_rdoc:
|