nanoc-deploy 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +1 -1
- data/README.md +2 -0
- data/lib/nanoc-deploy/extra/deployers/cloud.rb +16 -6
- data/lib/nanoc-deploy/version.rb +1 -1
- data/nanoc-deploy.gemspec +1 -0
- metadata +44 -48
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 83d2edaf1753ec34e29127dd901e41e6d72f5701
|
4
|
+
data.tar.gz: f6ac6f894e941d2b08b24e856855280c882c3def
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d818b8572cdbe0238a158a458e31d13adb4da8d6e6d64a7a0cc8e8f52345c5918363a252571d555876fa0f173c994b502b61bb58d931539a52685751d429914c
|
7
|
+
data.tar.gz: 79bde4b1127ae4580fd23d9a8b18db5457dbab3cad7c4d9a8b0b662bab4619e0c8d4cd262e5077e1569616cf5da6cf9bb6f2126b55dcdbc8892462438c29fd46
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
Nanoc Deploy
|
2
2
|
=============================
|
3
3
|
|
4
|
+
**Note: As of Nanoc 3.3, nanoc-deploy will be [integrated](https://github.com/nanoc/nanoc/commit/e4c7f16ea0fbb8a59eac8d33591b83b1915540ec) into nanoc.**
|
5
|
+
|
4
6
|
Nanoc Deploy is a nanoc gem that adds a deployer that will upload your site into the cloud.
|
5
7
|
|
6
8
|
It uses the [fog](https://github.com/geemus/fog) gem and currently supports Amazon S3, Rackspace Cloud Files, and Google Storage.
|
@@ -78,8 +78,9 @@ module NanocDeploy::Extra::Deployers
|
|
78
78
|
provider = @site.config[:deploy][config_name][:provider]
|
79
79
|
src = File.expand_path(@site.config[:output_dir]) + '/'
|
80
80
|
bucket = @site.config[:deploy][config_name][:bucket]
|
81
|
-
|
81
|
+
aws_region = @site.config[:deploy][config_name][:aws_region]
|
82
82
|
path = @site.config[:deploy][config_name][:path]
|
83
|
+
|
83
84
|
|
84
85
|
# Validate arguments
|
85
86
|
error 'No provider found in deployment configuration' if provider.nil?
|
@@ -88,11 +89,20 @@ module NanocDeploy::Extra::Deployers
|
|
88
89
|
|
89
90
|
case provider
|
90
91
|
when 'aws'
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
92
|
+
if aws_region
|
93
|
+
connection = Fog::Storage.new(
|
94
|
+
:provider => 'AWS',
|
95
|
+
:aws_access_key_id => @site.config[:deploy][config_name][:aws_access_key_id],
|
96
|
+
:aws_secret_access_key => @site.config[:deploy][config_name][:aws_secret_access_key],
|
97
|
+
:region => aws_region
|
95
98
|
)
|
99
|
+
else
|
100
|
+
connection = Fog::Storage.new(
|
101
|
+
:provider => 'AWS',
|
102
|
+
:aws_access_key_id => @site.config[:deploy][config_name][:aws_access_key_id],
|
103
|
+
:aws_secret_access_key => @site.config[:deploy][config_name][:aws_secret_access_key]
|
104
|
+
)
|
105
|
+
end
|
96
106
|
when 'rackspace'
|
97
107
|
connection = Fog::Storage.new(
|
98
108
|
:provider => 'Rackspace',
|
@@ -145,4 +155,4 @@ module NanocDeploy::Extra::Deployers
|
|
145
155
|
raise RuntimeError.new(msg)
|
146
156
|
end
|
147
157
|
end
|
148
|
-
end
|
158
|
+
end
|
data/lib/nanoc-deploy/version.rb
CHANGED
data/nanoc-deploy.gemspec
CHANGED
@@ -11,6 +11,7 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.homepage = "http://jackchu.com/easily-deploy-static-sites-into-the-cloud-wit"
|
12
12
|
s.summary = %q{nanoc extension adds rake cloud deployment options using fog.}
|
13
13
|
s.description = %q{}
|
14
|
+
s.license = "MIT"
|
14
15
|
|
15
16
|
s.rubyforge_project = "nanoc-deploy"
|
16
17
|
|
metadata
CHANGED
@@ -1,52 +1,52 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanoc-deploy
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
version: 0.0.3
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
|
-
authors:
|
6
|
+
authors:
|
8
7
|
- Jack Chu
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
16
14
|
name: nanoc
|
17
|
-
|
18
|
-
|
19
|
-
none: false
|
20
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
21
17
|
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
18
|
+
- !ruby/object:Gem::Version
|
23
19
|
version: 3.1.6
|
24
20
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: fog
|
28
21
|
prerelease: false
|
29
|
-
|
30
|
-
|
31
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: fog
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
32
31
|
- - ">="
|
33
|
-
- !ruby/object:Gem::Version
|
32
|
+
- !ruby/object:Gem::Version
|
34
33
|
version: 0.7.2
|
35
34
|
type: :runtime
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.7.2
|
41
|
+
description: ''
|
42
|
+
email:
|
39
43
|
- jack@jackchu.com
|
40
44
|
executables: []
|
41
|
-
|
42
45
|
extensions: []
|
43
|
-
|
44
46
|
extra_rdoc_files: []
|
45
|
-
|
46
|
-
|
47
|
-
- .gitignore
|
47
|
+
files:
|
48
|
+
- ".gitignore"
|
48
49
|
- Gemfile
|
49
|
-
- Gemfile.lock
|
50
50
|
- LICENSE
|
51
51
|
- README.md
|
52
52
|
- Rakefile
|
@@ -60,31 +60,27 @@ files:
|
|
60
60
|
- lib/nanoc-deploy/version.rb
|
61
61
|
- nanoc-deploy.gemspec
|
62
62
|
homepage: http://jackchu.com/easily-deploy-static-sites-into-the-cloud-wit
|
63
|
-
licenses:
|
64
|
-
|
63
|
+
licenses:
|
64
|
+
- MIT
|
65
|
+
metadata: {}
|
65
66
|
post_install_message:
|
66
67
|
rdoc_options: []
|
67
|
-
|
68
|
-
require_paths:
|
68
|
+
require_paths:
|
69
69
|
- lib
|
70
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
-
|
72
|
-
requirements:
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
73
72
|
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
-
|
78
|
-
requirements:
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
79
77
|
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version:
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
82
80
|
requirements: []
|
83
|
-
|
84
81
|
rubyforge_project: nanoc-deploy
|
85
|
-
rubygems_version:
|
82
|
+
rubygems_version: 2.4.1
|
86
83
|
signing_key:
|
87
|
-
specification_version:
|
84
|
+
specification_version: 4
|
88
85
|
summary: nanoc extension adds rake cloud deployment options using fog.
|
89
86
|
test_files: []
|
90
|
-
|