capistrano-s3copy-awscli 0.0.2 → 0.0.3

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.
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module S3copy
3
3
  module Awscli
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -19,6 +19,7 @@ if [ "${AWS_SECRET_ACCESS_KEY}" == "" ]; then
19
19
  fi
20
20
 
21
21
  AWS_RELEASES_BUCKET=<%= configuration[:aws_releases_bucket] %>
22
+ AWS_REGION=<%= configuration[:aws_region] %>
22
23
 
23
24
  RAILS_ENV=<%= configuration[:rails_env] %> # e.g. production
24
25
  DEPLOY_TO=<%= configuration[:deploy_to] %> # e.g. /u/apps/myapp
@@ -49,7 +50,7 @@ chmod -R g+w ${DEPLOY_TO}
49
50
  # mkdir -p ${SHARED_PATH}/uploads
50
51
 
51
52
  # cap deploy:update_code
52
- s3cmd get ${AWS_RELEASES_BUCKET}:${S3_PACKAGE_PATH} ${DOWNLOADED_PACKAGE_PATH} 2>&1
53
+ aws s3 get-object --bucket ${AWS_RELEASES_BUCKET} --region ${AWS_REGION} --key ${S3_PACKAGE_PATH} ${DOWNLOADED_PACKAGE_PATH} 2>&1
53
54
  cd ${RELEASES_PATH} && ${DECOMPRESS_CMD} && rm ${DOWNLOADED_PACKAGE_PATH}
54
55
 
55
56
  # cap deploy:assets_symlink (Rails 3.x specific)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3copy-awscli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-29 00:00:00.000000000 Z
12
+ date: 2013-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano