php-composer-deploy 0.0.2 → 0.0.3

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: 89b054b675077756d12f7f00c5eedd611e59eeb8
4
- data.tar.gz: 582eefa333e1f2b61cf2ffa62bd1fb4c2ed024fb
3
+ metadata.gz: 93e8def995db24714e3cddd996241bac2df7f57a
4
+ data.tar.gz: b20eb29a85975347c0d732c9819d8e7382d67425
5
5
  SHA512:
6
- metadata.gz: 2e596052edc9deab0bd40285ccd02dadc0beff6972a4b91c76de9fce5fd5c576b9d9a916dd814d6d2a1b97f59847c8f3adc0681e844b1828971cc1513dce95f7
7
- data.tar.gz: 84d0c6a828f817392cc3bc772e9a82d51f4c8c82f2ccebc8485699183e38c3ab5e4569ae3c07645074d0c28662edd11db46f9dd0f2d7088b314d79b68cea1af0
6
+ metadata.gz: a99bc6538ddd4f4a097a40e36c64de9ecde022c49a541b24d716e73679c0fe60120843255692bfee48723844838ad2aaa91a18a93f7479e201e677a931b94917
7
+ data.tar.gz: ae718436c6845e0a6c5bb424de6dc0378f34cc36578ec9a80bf763454cfbf28879624cfd0a3af2ecee1d3d4a81dc5078163d6c7a191f7b9145a653626054377d
@@ -3,3 +3,7 @@
3
3
  ## 0.0.1 - July 25th 2013
4
4
 
5
5
  * Initial release.
6
+
7
+ ## 0.0.3 - November 21st 2016
8
+
9
+ * Adding additional deploy method with --no-dev flag
@@ -8,7 +8,7 @@ If you want to use Capistrano to deploy php apps using Composer, this is it.
8
8
 
9
9
  ## Usage
10
10
 
11
- Open your application's `Capfile` and make it begins like this:
11
+ Open your application's `Capfile` and make sure it begins like this:
12
12
 
13
13
  require 'rubygems'
14
14
  require 'php-composer-deploy'
@@ -24,23 +24,24 @@ Full list of tasks:
24
24
 
25
25
  If you want to try before you buy, here's the list of tasks included with this version of the deploy recipe:
26
26
 
27
- cap deploy # Deploys your project.
28
- cap deploy:check # Test deployment dependencies.
29
- cap deploy:cleanup # Clean up old releases.
30
- cap deploy:cold # Deploys and starts a `cold' application.
31
- cap deploy:pending # Displays the commits since your last deploy.
32
- cap deploy:pending:diff # Displays the `diff' since your last deploy.
33
- cap deploy:rollback # Rolls back to a previous version and restarts.
34
- cap deploy:rollback:code # Rolls back to the previously deployed version.
35
- cap deploy:setup # Prepares one or more servers for deployment.
36
- cap deploy:create_symlink # Updates the symlink to the most recently deployed ...
37
- cap deploy:update # Copies your project and updates the symlink.
38
- cap deploy:update_code # Copies your project to the remote servers.
39
- cap deploy:upload # Copy files to the currently deployed version.
40
- cap composer:install # Run composer install in the currently symlinked directory
41
- cap composer:copy_vendors # Copy the vendors folder from the previously deployed version
42
- cap invoke # Invoke a single command on the remote servers.
43
- cap shell # Begin an interactive Capistrano session.
27
+ cap deploy # Deploys your project.
28
+ cap deploy:check # Test deployment dependencies.
29
+ cap deploy:cleanup # Clean up old releases.
30
+ cap deploy:cold # Deploys and starts a `cold' application.
31
+ cap deploy:pending # Displays the commits since your last deploy.
32
+ cap deploy:pending:diff # Displays the `diff' since your last deploy.
33
+ cap deploy:rollback # Rolls back to a previous version and restarts.
34
+ cap deploy:rollback:code # Rolls back to the previously deployed version.
35
+ cap deploy:setup # Prepares one or more servers for deployment.
36
+ cap deploy:create_symlink # Updates the symlink to the most recently deployed ...
37
+ cap deploy:update # Copies your project and updates the symlink.
38
+ cap deploy:update_code # Copies your project to the remote servers.
39
+ cap deploy:upload # Copy files to the currently deployed version.
40
+ cap composer:install # Run composer install in the currently symlinked directory
41
+ cap composer:install_nodev # Run composer install in the currently symlinked directory with --no-dev flag
42
+ cap composer:copy_vendors # Copy the vendors folder from the previously deployed version
43
+ cap invoke # Invoke a single command on the remote servers.
44
+ cap shell # Begin an interactive Capistrano session.
44
45
 
45
46
 
46
47
  ## Want to help improve this?
@@ -449,13 +449,20 @@ Capistrano::Configuration.instance(:must_exist).load do
449
449
  desc "Copy vendors from previous release"
450
450
  task :copy_vendors, :except => { :no_release => true } do
451
451
  run "if [ -d #{previous_release}/vendor ]; then cp -a #{previous_release}/vendor #{latest_release}/vendor; fi"
452
- end
452
+ end
453
+
453
454
  desc "Install vendors in current path"
454
455
  task :install do
455
456
  run "sh -c 'cd #{latest_release} && curl -s http://getcomposer.org/installer | php'"
456
457
  run "sh -c 'cd #{release_path} && ./composer.phar install'"
457
458
  end
458
459
 
460
+ desc "Install vendors in current path without dev"
461
+ task :install_nodev do
462
+ run "sh -c 'cd #{latest_release} && curl -s http://getcomposer.org/installer | php'"
463
+ run "sh -c 'cd #{release_path} && ./composer.phar install --no-dev'"
464
+ end
465
+
459
466
  end
460
467
 
461
468
  end # Capistrano::Configuration.instance(:must_exist).load do
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "php-composer-deploy"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joseph Lombardo"]
12
12
  s.date = "2013-07-25"
13
- s.description = "Replacement for the rails deploy strategy which ships with Capistrano, allows you to deploy any platform with ease; some people have had huge success with this deploying rails projects where they needed to customise their deploy strategy beyond the code which ships with the Capistrano gem."
13
+ s.description = "Replacement for the rails deploy strategy which ships with Capistrano, allows you to deploy php composer projects with ease."
14
14
  s.email = "me@joseph-lombardo.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.markdown",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: php-composer-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Lombardo
@@ -11,9 +11,7 @@ cert_chain: []
11
11
  date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Replacement for the rails deploy strategy which ships with Capistrano,
14
- allows you to deploy any platform with ease; some people have had huge success with
15
- this deploying rails projects where they needed to customise their deploy strategy
16
- beyond the code which ships with the Capistrano gem.
14
+ allows you to deploy php composer projects with ease.
17
15
  email: me@joseph-lombardo.com
18
16
  executables: []
19
17
  extensions: []
@@ -37,17 +35,17 @@ require_paths:
37
35
  - lib
38
36
  required_ruby_version: !ruby/object:Gem::Requirement
39
37
  requirements:
40
- - - '>='
38
+ - - ">="
41
39
  - !ruby/object:Gem::Version
42
40
  version: '0'
43
41
  required_rubygems_version: !ruby/object:Gem::Requirement
44
42
  requirements:
45
- - - '>='
43
+ - - ">="
46
44
  - !ruby/object:Gem::Version
47
45
  version: '0'
48
46
  requirements: []
49
47
  rubyforge_project:
50
- rubygems_version: 2.0.3
48
+ rubygems_version: 2.5.1
51
49
  signing_key:
52
50
  specification_version: 4
53
51
  summary: Replacement for the default Capistrano tasks, designed to make life easier