capistrano-compose 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano-composer.gemspec +1 -1
- data/lib/capistrano/tasks/composer.rake +2 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23815bf1903b14bc44fb78e56de5ec9515d3576d
|
4
|
+
data.tar.gz: bd4a387ae677407f7b1ca9c4f0c7f741ca852190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88364cba370e907005c6b0bd6b0f7b7132f2af937943200979d5764cc666e82963703e87d067c3aa4f87f2ca318affa00cd74106186c69120971242bfec1658b
|
7
|
+
data.tar.gz: 63b008135ae9080f6d573dd91567e116e779bb1794c33b6a76fab752867d938dce051bd9ddcf43e5f3d237bb2a1744bc2cf6f87cc434fc73e05d8e7e453a370b
|
data/capistrano-composer.gemspec
CHANGED
@@ -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.
|
7
|
+
spec.version = '0.0.15'
|
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}
|
@@ -5,22 +5,14 @@ set :composer_download_url, "https://getcomposer.org/installer"
|
|
5
5
|
set :composer_filename, "composer"
|
6
6
|
|
7
7
|
namespace :composer do
|
8
|
-
desc
|
9
|
-
Installs composer.phar to the shared directory
|
10
|
-
In order to use the .phar file, the composer command needs to be mapped:
|
11
|
-
SSHKit.config.command_map[:composer] = "\#{shared_path.join("composer.phar")}"
|
12
|
-
This is best used before deploy:starting:
|
13
|
-
namespace :deploy do
|
14
|
-
before :starting, 'composer:install_executable'
|
15
|
-
end
|
16
|
-
DESC
|
8
|
+
desc "Installs composer to the shared directory"
|
17
9
|
task :install_executable do
|
18
10
|
on roles fetch(:composer_roles) do
|
19
11
|
within fetch(:shared_path) do
|
20
12
|
unless test "[", "-e", "#{fetch(:composer_filename)}", "]"
|
21
13
|
composer_version = fetch(:composer_version, nil)
|
22
14
|
composer_version_option = composer_version ? "-- --version=#{composer_version}" : ""
|
23
|
-
composer_filename_option = " --filename=#{fetch(:composer_filename)}"
|
15
|
+
composer_filename_option = "-- --filename=#{fetch(:composer_filename)}"
|
24
16
|
execute :curl, "-s", fetch(:composer_download_url), "|", :php, composer_version_option, composer_filename_option
|
25
17
|
end
|
26
18
|
end
|