mogwai 0.0.22 → 0.0.25
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.
- checksums.yaml +4 -4
- data/bin/mogwai +1 -1
- data/lib/mogwai.rb +3 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca6f8166e708173e15a5e1b601fe3e2e70e562f5
|
4
|
+
data.tar.gz: fcd6b055a58adfe16959e9c645661eeae2766576
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c5f49c167b29e62a5b846ee9ba1866e1911d6e57d3d0a5baf5da4264578d9295b6d2555be063ce3b6a21d169911b25de48663a826fd8fc7548fc5def5a2ad07
|
7
|
+
data.tar.gz: 534fd2db8bd6b9c268b1f0755accf53a4e0c2fff7745cc7f3b71dd63bb6dc0c732444a005ae146fcd1643dba7603e635293e99f0016793ad2f97bbc379fae7ab
|
data/bin/mogwai
CHANGED
data/lib/mogwai.rb
CHANGED
@@ -19,9 +19,10 @@ class Mogwai
|
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
|
-
def self.deploy
|
22
|
+
def self.deploy bucket = nil
|
23
23
|
config = Mogwai::Config.new
|
24
24
|
config.read
|
25
|
+
bucket ||= config[:BUCKET]
|
25
26
|
|
26
27
|
# Deploy built assets to s3
|
27
28
|
STDOUT.sync = true
|
@@ -40,7 +41,7 @@ class Mogwai
|
|
40
41
|
AWS::S3::S3Object.store(
|
41
42
|
remote_file,
|
42
43
|
open(file),
|
43
|
-
|
44
|
+
bucket,
|
44
45
|
:access => :public_read
|
45
46
|
)
|
46
47
|
end
|