refinerycms-s3assets 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/refinerycms-s3assets.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'aws/s3'
|
2
|
-
require 'heroku/command'
|
2
|
+
require 'heroku/command/base'
|
3
3
|
require 'progress_bar'
|
4
4
|
|
5
5
|
module Refinery
|
@@ -62,16 +62,15 @@ module Refinery
|
|
62
62
|
def self.s3_config
|
63
63
|
return @s3_config unless @s3_config.nil?
|
64
64
|
|
65
|
-
heroku_command = Heroku::Command::Base.new({})
|
66
|
-
|
67
65
|
begin
|
68
|
-
|
66
|
+
base = Heroku::Command::BaseWithApp.new
|
67
|
+
app = base.app
|
69
68
|
rescue
|
70
69
|
puts "This does not look like a Heroku app!"
|
71
70
|
exit
|
72
71
|
end
|
73
72
|
|
74
|
-
config_vars =
|
73
|
+
config_vars = base.heroku.config_vars(app)
|
75
74
|
|
76
75
|
@s3_config = {
|
77
76
|
:s3_key => ENV['S3_KEY'] || config_vars['S3_KEY'],
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{copies s3 assets from production refinerycms app hosted on Heroku to local}
|
14
14
|
|
15
15
|
s.add_dependency("aws-s3", "~> 0.6.2")
|
16
|
-
s.add_dependency("heroku", "~>
|
16
|
+
s.add_dependency("heroku", "~> 2.0.4")
|
17
17
|
s.add_dependency("progress_bar", "~> 0.3.4")
|
18
18
|
|
19
19
|
s.rubyforge_project = "refinerycms-s3assets"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-s3assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Francois Harbec
|
@@ -42,12 +42,12 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
hash:
|
45
|
+
hash: 7
|
46
46
|
segments:
|
47
|
-
-
|
48
|
-
-
|
49
|
-
-
|
50
|
-
version:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 4
|
50
|
+
version: 2.0.4
|
51
51
|
type: :runtime
|
52
52
|
version_requirements: *id002
|
53
53
|
- !ruby/object:Gem::Dependency
|