dpl 1.8.46.travis.2451.5 → 1.8.46.travis.2454.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fe1e104969a8f068c502defed535a17fb25ac80d88186a7e648d37cbee0048e
4
- data.tar.gz: 821067b53910c92bcf8550d2d4b2a8eca2bbb16d4f76158c7341c165ced56e05
3
+ metadata.gz: 9d06fc6a2cffd0c9090ebd7b1241eeb5990f276329524850f1362f063325c73e
4
+ data.tar.gz: 03b4c230163266626b81e5f0b287750a0bedf4ac81addf70dd9c6181d666c71c
5
5
  SHA512:
6
- metadata.gz: d7da9c646e3561b2949ee681093ad5df68c6c22e05271204f22ef48381a17373c821b8bf335dfb0875cf4a37e394ce5e8de08df4c16c8a21f8ff12de77b54a98
7
- data.tar.gz: fe0e32e92dec23b229fbe0f3a84a93e00b64afc59ce19cc10eae6cc137a3d303d42a4ee6d714f8890477bf5fc941e0087d0f4ddfb8dff771175eff932768232e
6
+ metadata.gz: a494e91ac744d90ca1d57fb47b8d02171be1b49bed22c955a212b1b120025b5b2771950af834741610f2ea56e8295f9a39788bffe78f656be3af8083b78d0cd9
7
+ data.tar.gz: 607f6e84f1a897d9b061cd6f2b212b8fc4f398144ae0c84b93fc8dbedd7666d6e28a3c8f70c5099c7e92b7ab8405d56e8ebda88d70b81dcaf3ae257ac9a7e0b0
data/README.md CHANGED
@@ -528,6 +528,7 @@ You first need to create an [Atlas account](https://atlas.hashicorp.com/account/
528
528
  * **project-name**: Defaults to fqdn or repo slug, used for metadata.
529
529
  * **email**: Optional, committer info, defaults to deploy@travis-ci.org.
530
530
  * **name**: Optional, committer, defaults to Deployment Bot.
531
+ * **deployment-file**: Optional, defaults to false, enables creation of deployment-info files
531
532
 
532
533
  #### Examples:
533
534
 
@@ -17,6 +17,7 @@ module DPL
17
17
  - project-name [optional, defaults to fqdn or repo slug]
18
18
  - email [optional, defaults to deploy@travis-ci.org]
19
19
  - name [optional, defaults to Deployment Bot]
20
+ - deployment-file [optional, defaults to false]
20
21
  """
21
22
 
22
23
  require 'tmpdir'
@@ -49,6 +50,8 @@ module DPL
49
50
  @gh_email = options[:email] || 'deploy@travis-ci.org'
50
51
  @gh_name = "#{options[:name] || 'Deployment Bot'} (from Travis CI)"
51
52
 
53
+ @deployment_file = !!options[:deployment_file]
54
+
52
55
  @gh_ref = "#{@gh_url}/#{slug}.git"
53
56
  @gh_remote_url = "https://#{@gh_token}@#{@gh_ref}"
54
57
  @git_push_opts = @keep_history ? '' : ' --force'
@@ -167,7 +170,7 @@ module DPL
167
170
  def github_commit
168
171
  committer_name, _ = identify_preferred_committer
169
172
  print_step "Preparing to deploy #{@target_branch} branch to gh-pages (workdir: #{Dir.pwd})"
170
- context.shell "touch \"deployed at `date` by #{committer_name}\""
173
+ context.shell "touch \"deployed at `date` by #{committer_name}\"" if @deployment_file
171
174
  context.shell "echo '#{@gh_fqdn}' > CNAME" if @gh_fqdn
172
175
  context.shell 'git add -A .'
173
176
  context.shell "git commit#{@git_commit_opts} -qm 'Deploy #{@project_name} to #{@gh_ref}:#{@target_branch}'"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dpl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.46.travis.2451.5
4
+ version: 1.8.46.travis.2454.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase