dpl 1.8.19.travis.1646.3 → 1.8.19.travis.1647.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +0 -1
- data/README.md +6 -7
- data/lib/dpl/provider/atlas.rb +7 -17
- data/lib/dpl/provider/cloud_files.rb +2 -1
- data/lib/dpl/provider/s3.rb +0 -1
- data/spec/provider/s3_spec.rb +0 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmJlODY4ZDdjMmU5ZGRjYzZkZmFhY2ZjNzhmMTlhZmJmMjc4NDY4Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MWMzZjQyNGMyODI0MzI4NTk0Mjg4ZGM3OGUxNmZhZmJhNDAwYWIyZg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRiMDFkZmQ4OWNhYzc4ZmVjYTQ2MmMyZGQxN2U4NTU0MWNhNjU2OWQ1ZTQ5
|
10
|
+
YzUzN2RhMGVjZWY5MTcwOGZhZjNmYzI2NWNkNzMwZDJmM2E1OGViM2RmYWJh
|
11
|
+
ODQ0MjdlMDA3M2Y2ZjAzNmZmOTA4ZDZhNDQ3MzdmYTE1MTI4ZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmM0NTEzYjc3MDRiN2VkNTQxMmZhZjMzODMxYmM3ZmJkZWIyMDllOGU1MGFk
|
14
|
+
MzUyOWYxZDc5YTFiMDMyMmE1MTUxNTcyNmQ0MjFkNGQ1MGU2N2JhZGU3MWE3
|
15
|
+
MTA4YzczMDdhMzYxMzBmY2NhOGE5ZjdmNDAwNDRhYjdkZTgxNjI=
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -52,7 +52,7 @@ Dpl supports the following providers:
|
|
52
52
|
|
53
53
|
Dpl is published to rubygems.
|
54
54
|
|
55
|
-
* Dpl requires ruby with a version greater than 1.
|
55
|
+
* Dpl requires ruby with a version greater than 1.8.7
|
56
56
|
* To install: `gem install dpl`
|
57
57
|
|
58
58
|
## Usage:
|
@@ -69,18 +69,18 @@ Running dpl in a terminal that saves history is insecure as your password/api ke
|
|
69
69
|
|
70
70
|
#### Options:
|
71
71
|
* **api-key**: Heroku API Key
|
72
|
-
* **strategy
|
72
|
+
* **strategy**: Deployment strategy for Dpl. Defaults to `api`. Other options are `git`, `git ssh`, and `git deploykey`.
|
73
73
|
* **app**: Heroku app name. Defaults to the name of your git repo.
|
74
74
|
* **username**: heroku username. Not necessary if api-key is used. Requires git strategy.
|
75
75
|
* **password**: heroku password. Not necessary if api-key is used. Requires git strategy.
|
76
76
|
|
77
|
-
#### Git vs Anvil Deploy:
|
78
|
-
*
|
77
|
+
#### API vs Git vs Anvil Deploy:
|
78
|
+
* API deploy will tar up the current directory (minus the git repo) and send it to Heroku.
|
79
|
+
* Git deploy will send the contents of the git repo only, so may not contain any local changes.
|
80
|
+
* Anvil deploys are no longer supported since Heroku shut down the Anvil service.
|
79
81
|
* The Git strategy allows using *user* and *password* instead of *api-key*.
|
80
82
|
* When using Git, Heroku might send you an email for every deploy, as it adds a temporary SSH key to your account.
|
81
83
|
|
82
|
-
As a rule of thumb, you should switch to the Git strategy if you run into issues with Anvil or if you're using the [user-env-compile](https://devcenter.heroku.com/articles/labs-user-env-compile) plugin.
|
83
|
-
|
84
84
|
#### Examples:
|
85
85
|
|
86
86
|
dpl --provider=heroku --api-key=`heroku auth:token`
|
@@ -316,7 +316,6 @@ For authentication you can also use Travis CI secure environment variable:
|
|
316
316
|
* **bucket**: S3 Bucket.
|
317
317
|
* **region**: S3 Region. Defaults to us-east-1.
|
318
318
|
* **upload-dir**: S3 directory to upload to. Defaults to root directory.
|
319
|
-
* **storage-class**: S3 storage class to upload as. Defaults to "STANDARD". Other values are "STANDARD_IA" or "REDUCED_REDUNDANCY". Details can be found [here](https://aws.amazon.com/s3/storage-classes/).
|
320
319
|
* **local-dir**: Local directory to upload from. Can be set from a global perspective (~/travis/build) or relative perspective (build) Defaults to project root.
|
321
320
|
* **detect-encoding**: Set HTTP header `Content-Encoding` for files compressed with `gzip` and `compress` utilities. Defaults to not set.
|
322
321
|
* **cache_control**: Set HTTP header `Cache-Control` to suggest that the browser cache the file. Defaults to `no-cache`. Valid options are `no-cache`, `no-store`, `max-age=<seconds>`,`s-maxage=<seconds>` `no-transform`, `public`, `private`.
|
data/lib/dpl/provider/atlas.rb
CHANGED
@@ -16,15 +16,14 @@ module DPL
|
|
16
16
|
chmod +x $HOME/bin/gimme
|
17
17
|
fi
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
else
|
22
|
-
export GOPATH="$HOME/gopath:$GOPATH"
|
23
|
-
fi
|
24
|
-
eval "$(gimme 1.6)" &> /dev/null
|
19
|
+
export GOPATH="$HOME/gopath:$GOPATH"
|
20
|
+
eval "$(gimme 1.4.2)" &>/dev/null
|
25
21
|
|
26
22
|
go get #{ATLAS_UPLOAD_CLI_GO_REMOTE}
|
27
|
-
|
23
|
+
pushd $HOME/gopath/src/#{ATLAS_UPLOAD_CLI_GO_REMOTE} &>/dev/null
|
24
|
+
make &>/dev/null
|
25
|
+
cp bin/atlas-upload $HOME/bin/atlas-upload
|
26
|
+
popd &>/dev/null
|
28
27
|
fi
|
29
28
|
EOF
|
30
29
|
|
@@ -60,9 +59,7 @@ module DPL
|
|
60
59
|
private
|
61
60
|
|
62
61
|
def install_atlas_upload
|
63
|
-
|
64
|
-
context.shell ATLAS_UPLOAD_INSTALL_SCRIPT
|
65
|
-
end
|
62
|
+
context.shell ATLAS_UPLOAD_INSTALL_SCRIPT
|
66
63
|
end
|
67
64
|
|
68
65
|
def assert_app_present!
|
@@ -96,13 +93,6 @@ module DPL
|
|
96
93
|
def atlas_app
|
97
94
|
@atlas_app ||= options.fetch(:app).to_s
|
98
95
|
end
|
99
|
-
|
100
|
-
def without_git_http_user_agent(&block)
|
101
|
-
git_http_user_agent = ENV.delete("GIT_HTTP_USER_AGENT")
|
102
|
-
yield
|
103
|
-
ENV["GIT_HTTP_USER_AGENT"] = git_http_user_agent
|
104
|
-
end
|
105
|
-
|
106
96
|
end
|
107
97
|
end
|
108
98
|
end
|
@@ -5,7 +5,8 @@ module DPL
|
|
5
5
|
class CloudFiles < Provider
|
6
6
|
requires 'net-ssh', load: 'net/ssh', version: '~> 2.9.2' # Anything higher requires Ruby 2.x
|
7
7
|
requires 'mime-types', load: 'mime/types', version: '~> 2.6.2' # Anything higher requires Ruby 2.x
|
8
|
-
requires 'fog-
|
8
|
+
requires 'fog-google', load: 'fog/google', version: '< 0.1.1' # Anything higher requires Ruby 2.x
|
9
|
+
requires 'fog', version: '< 1.35.0' # Anything higher requires fog-google 0.1.1 and up, which, in turn, requires Ruby 2.x
|
9
10
|
experimental 'Rackspace Cloud Files'
|
10
11
|
|
11
12
|
def needs_key?
|
data/lib/dpl/provider/s3.rb
CHANGED
@@ -50,7 +50,6 @@ module DPL
|
|
50
50
|
opts[:cache_control] = get_option_value_by_filename(options[:cache_control], filename) if options[:cache_control]
|
51
51
|
opts[:acl] = options[:acl].gsub(/_/, '-') if options[:acl]
|
52
52
|
opts[:expires] = get_option_value_by_filename(options[:expires], filename) if options[:expires]
|
53
|
-
opts[:storage_class] = options[:storage_class] if options[:storage_class]
|
54
53
|
unless File.directory?(filename)
|
55
54
|
log "uploading #{filename.inspect} with #{opts.inspect}"
|
56
55
|
result = api.bucket(option(:bucket)).object(upload_path(filename)).upload_file(filename, opts)
|
data/spec/provider/s3_spec.rb
CHANGED
@@ -127,13 +127,6 @@ describe DPL::Provider::S3 do
|
|
127
127
|
provider.push_app
|
128
128
|
end
|
129
129
|
|
130
|
-
example "Sets Storage Class" do
|
131
|
-
provider.options.update(:storage_class => "STANDARD_AI")
|
132
|
-
expect(Dir).to receive(:glob).and_yield(__FILE__)
|
133
|
-
expect_any_instance_of(Aws::S3::Object).to receive(:upload_file).with(anything(), hash_including(:storage_class => "STANDARD_AI"))
|
134
|
-
provider.push_app
|
135
|
-
end
|
136
|
-
|
137
130
|
example "Sets Website Index Document" do
|
138
131
|
provider.options.update(:index_document_suffix => "test/index.html")
|
139
132
|
expect(Dir).to receive(:glob).and_yield(__FILE__)
|