magentify 0.0.5 → 0.0.6
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.
- data/lib/mage.rb +10 -9
 - data/lib/magentify/version.rb +1 -1
 - metadata +10 -5
 
    
        data/lib/mage.rb
    CHANGED
    
    | 
         @@ -15,6 +15,7 @@ _cset(:app_shared_files)  { 
     | 
|
| 
       15 
15 
     | 
    
         
             
            }
         
     | 
| 
       16 
16 
     | 
    
         | 
| 
       17 
17 
     | 
    
         
             
            _cset :compile, false
         
     | 
| 
      
 18 
     | 
    
         
            +
            _cset :app_webroot, ''
         
     | 
| 
       18 
19 
     | 
    
         | 
| 
       19 
20 
     | 
    
         
             
            namespace :mage do
         
     | 
| 
       20 
21 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
         @@ -45,7 +46,7 @@ namespace :mage do 
     | 
|
| 
       45 
46 
     | 
    
         
             
                Any directories deployed from the SCM are first removed and then replaced with \
         
     | 
| 
       46 
47 
     | 
    
         
             
                symlinks to the same directories within the shared location.
         
     | 
| 
       47 
48 
     | 
    
         
             
              DESC
         
     | 
| 
       48 
     | 
    
         
            -
              task :finalize_update, :roles => [:web, :app], :except => { :no_release => true } do 
     | 
| 
      
 49 
     | 
    
         
            +
              task :finalize_update, :roles => [:web, :app], :except => { :no_release => true } do
         
     | 
| 
       49 
50 
     | 
    
         
             
                run "chmod -R g+w #{latest_release}" if fetch(:group_writable, true)
         
     | 
| 
       50 
51 
     | 
    
         | 
| 
       51 
52 
     | 
    
         
             
                if app_symlinks
         
     | 
| 
         @@ -67,21 +68,21 @@ namespace :mage do 
     | 
|
| 
       67 
68 
     | 
    
         
             
                Clear the Magento Cache
         
     | 
| 
       68 
69 
     | 
    
         
             
              DESC
         
     | 
| 
       69 
70 
     | 
    
         
             
              task :cc, :roles => [:web, :app] do
         
     | 
| 
       70 
     | 
    
         
            -
                run "cd #{current_path} &&  
     | 
| 
      
 71 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot} && php -r \"require_once('app/Mage.php'); Mage::app()->cleanCache();\""
         
     | 
| 
       71 
72 
     | 
    
         
             
              end
         
     | 
| 
       72 
73 
     | 
    
         | 
| 
       73 
74 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
       74 
75 
     | 
    
         
             
                Disable the Magento install by creating the maintenance.flag in the web root.
         
     | 
| 
       75 
76 
     | 
    
         
             
              DESC
         
     | 
| 
       76 
77 
     | 
    
         
             
              task :disable, :roles => :web do
         
     | 
| 
       77 
     | 
    
         
            -
                run "cd #{current_path} && touch maintenance.flag"
         
     | 
| 
      
 78 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot} && touch maintenance.flag"
         
     | 
| 
       78 
79 
     | 
    
         
             
              end
         
     | 
| 
       79 
80 
     | 
    
         | 
| 
       80 
81 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
       81 
82 
     | 
    
         
             
                Enable the Magento stores by removing the maintenance.flag in the web root.
         
     | 
| 
       82 
83 
     | 
    
         
             
              DESC
         
     | 
| 
       83 
84 
     | 
    
         
             
              task :enable, :roles => :web do
         
     | 
| 
       84 
     | 
    
         
            -
                run "cd #{current_path} && rm -f maintenance.flag"
         
     | 
| 
      
 85 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot} && rm -f maintenance.flag"
         
     | 
| 
       85 
86 
     | 
    
         
             
              end
         
     | 
| 
       86 
87 
     | 
    
         | 
| 
       87 
88 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
         @@ -89,7 +90,7 @@ namespace :mage do 
     | 
|
| 
       89 
90 
     | 
    
         
             
              DESC
         
     | 
| 
       90 
91 
     | 
    
         
             
              task :compiler, :roles => [:web, :app] do
         
     | 
| 
       91 
92 
     | 
    
         
             
                if fetch(:compile, true)
         
     | 
| 
       92 
     | 
    
         
            -
                  run "cd #{current_path}/shell && php -f compiler.php -- compile"
         
     | 
| 
      
 93 
     | 
    
         
            +
                  run "cd #{current_path}#{app_webroot}/shell && php -f compiler.php -- compile"
         
     | 
| 
       93 
94 
     | 
    
         
             
                end
         
     | 
| 
       94 
95 
     | 
    
         
             
              end
         
     | 
| 
       95 
96 
     | 
    
         | 
| 
         @@ -97,28 +98,28 @@ namespace :mage do 
     | 
|
| 
       97 
98 
     | 
    
         
             
                Enable the Magento compiler
         
     | 
| 
       98 
99 
     | 
    
         
             
              DESC
         
     | 
| 
       99 
100 
     | 
    
         
             
              task :enable_compiler, :roles => [:web, :app] do
         
     | 
| 
       100 
     | 
    
         
            -
                run "cd #{current_path}/shell && php -f compiler.php -- enable"
         
     | 
| 
      
 101 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot}/shell && php -f compiler.php -- enable"
         
     | 
| 
       101 
102 
     | 
    
         
             
              end
         
     | 
| 
       102 
103 
     | 
    
         | 
| 
       103 
104 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
       104 
105 
     | 
    
         
             
                Disable the Magento compiler
         
     | 
| 
       105 
106 
     | 
    
         
             
              DESC
         
     | 
| 
       106 
107 
     | 
    
         
             
              task :disable_compiler, :roles => [:web, :app] do
         
     | 
| 
       107 
     | 
    
         
            -
                run "cd #{current_path}/shell && php -f compiler.php -- disable"
         
     | 
| 
      
 108 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot}/shell && php -f compiler.php -- disable"
         
     | 
| 
       108 
109 
     | 
    
         
             
              end
         
     | 
| 
       109 
110 
     | 
    
         | 
| 
       110 
111 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
       111 
112 
     | 
    
         
             
                Run the Magento indexer
         
     | 
| 
       112 
113 
     | 
    
         
             
              DESC
         
     | 
| 
       113 
114 
     | 
    
         
             
              task :indexer, :roles => [:web, :app] do
         
     | 
| 
       114 
     | 
    
         
            -
                run "cd #{current_path}/shell && php -f indexer.php -- reindexall"
         
     | 
| 
      
 115 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot}/shell && php -f indexer.php -- reindexall"
         
     | 
| 
       115 
116 
     | 
    
         
             
              end
         
     | 
| 
       116 
117 
     | 
    
         | 
| 
       117 
118 
     | 
    
         
             
              desc <<-DESC
         
     | 
| 
       118 
119 
     | 
    
         
             
                Clean the Magento logs
         
     | 
| 
       119 
120 
     | 
    
         
             
              DESC
         
     | 
| 
       120 
121 
     | 
    
         
             
              task :clean_log, :roles => [:web, :app] do
         
     | 
| 
       121 
     | 
    
         
            -
                run "cd #{current_path}/shell && php -f log.php -- clean"
         
     | 
| 
      
 122 
     | 
    
         
            +
                run "cd #{current_path}#{app_webroot}/shell && php -f log.php -- clean"
         
     | 
| 
       122 
123 
     | 
    
         
             
              end
         
     | 
| 
       123 
124 
     | 
    
         
             
            end
         
     | 
| 
       124 
125 
     | 
    
         | 
    
        data/lib/magentify/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: magentify
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.6
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -9,11 +9,11 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-08-29 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: capistrano
         
     | 
| 
       16 
     | 
    
         
            -
              requirement:  
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       17 
17 
     | 
    
         
             
                none: false
         
     | 
| 
       18 
18 
     | 
    
         
             
                requirements:
         
     | 
| 
       19 
19 
     | 
    
         
             
                - - ! '>='
         
     | 
| 
         @@ -21,7 +21,12 @@ dependencies: 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    version: 2.5.10
         
     | 
| 
       22 
22 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       23 
23 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       24 
     | 
    
         
            -
              version_requirements:  
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 26 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 27 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 2.5.10
         
     | 
| 
       25 
30 
     | 
    
         
             
            description: An extension to Capistrano to deploy Magento. Adding the specific requirements
         
     | 
| 
       26 
31 
     | 
    
         
             
              and additional tasks.
         
     | 
| 
       27 
32 
     | 
    
         
             
            email:
         
     | 
| 
         @@ -80,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       80 
85 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       81 
86 
     | 
    
         
             
            requirements: []
         
     | 
| 
       82 
87 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       83 
     | 
    
         
            -
            rubygems_version: 1.8. 
     | 
| 
      
 88 
     | 
    
         
            +
            rubygems_version: 1.8.23
         
     | 
| 
       84 
89 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       85 
90 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       86 
91 
     | 
    
         
             
            summary: Deploying Magento PHP applications with Capistrano.
         
     |