capistrano-compose 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 45b416524dbd232d07374c2b189231c2c2f83179
4
- data.tar.gz: bd59fa94d4bbf0708fe4b107cfb9ecbabf62fd2e
3
+ metadata.gz: b440a698f3181714878f1d81120fe33147abf306
4
+ data.tar.gz: 89cb17c4e6710dfd5421260fec0c1984249a5807
5
5
  SHA512:
6
- metadata.gz: fd491755d3433048f7493593223239daf0db1d7ec23df159a55c979e5978efac9478ac330f6f17417d2a412443de909391155e33a15f67a8943f07e5df9cddee
7
- data.tar.gz: 17cb720353f019e0cda673548136b73f2de7bda7fd66cf5e2ae71c9d7bb1e0eafc58eb73cc1068a96a25fd54758926f4afc1bb78623eff6331537af91bb40869
6
+ metadata.gz: d64301efe05b7a35f950695eca8aaed80dc2d394f6ea45ac002279c5c7b8ef5e844ba23848f0fd3f73a8dfe1163ea1a4c60aa45fc1fe568c474f73a428785b78
7
+ data.tar.gz: 1d8b2cee39d7b643a53d8d5a2de51af7f32c0dea4f8d537828b5e3f482f0609f9bd24141808cf3d44f777857793770c226cb3e8bcfbaa892136a46ab3d1e56af
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'capistrano-compose'
7
- spec.version = '0.0.13'
7
+ spec.version = '0.0.14'
8
8
  spec.authors = ['Scott Walkinshaw', 'Peter Mitchell', "Ross Riley"]
9
9
  spec.email = ['scott.walkinshaw@gmail.com', 'peterjmit@gmail.com', "riley.ross@gmail.com"]
10
10
  spec.description = %q{Composer support for Capistrano 3.x}
@@ -2,6 +2,7 @@ set :composer_install_flags, '--no-dev --prefer-dist --no-scripts --quiet --opti
2
2
  set :composer_roles, :all
3
3
  set :composer_dump_autoload_flags, '--optimize'
4
4
  set :composer_download_url, "https://getcomposer.org/installer"
5
+ set :composer_filename, "composer"
5
6
 
6
7
  namespace :composer do
7
8
  desc <<-DESC
@@ -16,10 +17,11 @@ namespace :composer do
16
17
  task :install_executable do
17
18
  on roles fetch(:composer_roles) do
18
19
  within fetch(:shared_path) do
19
- unless test "[", "-e", "composer.phar", "]"
20
+ unless test "[", "-e", "#{fetch(:composer_filename)}", "]"
20
21
  composer_version = fetch(:composer_version, nil)
21
- composer_version_option = composer_version ? "-- --version=#{composer_version} --filename=composer" : ""
22
- execute :curl, "-s", fetch(:composer_download_url), "|", :php, composer_version_option
22
+ composer_version_option = composer_version ? "-- --version=#{composer_version}" : ""
23
+ composer_filename_option = " --filename=#{fetch(:composer_filename)}"
24
+ execute :curl, "-s", fetch(:composer_download_url), "|", :php, composer_version_option, composer_filename_option
23
25
  end
24
26
  end
25
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-compose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Walkinshaw