capmagento 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/LICENSE.txt +22 -0
- data/README.md +39 -0
- data/capmagento.gemspec +30 -0
- data/lib/capistrano/tasks/magento.rake +37 -0
- data/lib/capmagento.rb +1 -0
- metadata +97 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 21575c6c58bbaf06be70465467a91dbf74fa82dc
|
4
|
+
data.tar.gz: 258e3a9c6ac35628826125d1c7ed9876cd9daeeb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 25c5faa7afa68ad282ea6d94c127962d4fe3aedbc9553da67f1e05b11d262b03c6c641c907e7565735db7539853e39d84ece9645ae434656a4ade30d4e65b89e
|
7
|
+
data.tar.gz: f02ab18651526fa76ac62d3bbf0a6b014bdecff39a94e5bd55fea38047cc47f5f7254d47b00834f3ff67269a25ed9f686ee6062084d1ee1134b118015e13c9ec
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2014 Czettner Sándor
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# Capmagento
|
2
|
+
|
3
|
+
This gem provides a number of tasks which are useful for deploying Magento projects with [Capistrano](https://github.com/capistrano/capistrano).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
[rubygems](http://rubygems.org) must be installed on your system first.
|
7
|
+
|
8
|
+
### From RubyGems.org
|
9
|
+
|
10
|
+
$ gem install capdrupal
|
11
|
+
|
12
|
+
### Install with Bundler (recomanded)
|
13
|
+
|
14
|
+
This version use capistrano 3. To avoid conflicts, I recommend to install both capistrano and capmagento from Bundler.
|
15
|
+
|
16
|
+
Create a 'Gemfile' on the root of your project
|
17
|
+
|
18
|
+
group :development do
|
19
|
+
gem 'capmagento', '~> 1.0.0'
|
20
|
+
end
|
21
|
+
|
22
|
+
Install the depencies
|
23
|
+
|
24
|
+
$ bundle install
|
25
|
+
|
26
|
+
Use capistrano through bundle
|
27
|
+
|
28
|
+
$ bundle exec cap mage:cc
|
29
|
+
|
30
|
+
for available commands, see:
|
31
|
+
|
32
|
+
$ bundle exec cap -T
|
33
|
+
|
34
|
+
cap mage:cc # Clear Magento Cache
|
35
|
+
cap mage:disable # Disable the Magento install by creating the maintenance.flag in the web root
|
36
|
+
cap mage:enable # Enable the Magento stores by removing the maintenance.flag in the web root
|
37
|
+
cap mage:hwscache # Clear Cheetah Cache
|
38
|
+
cap mage:hwscc # Clear Cheetah Cache
|
39
|
+
cap mage:indexer # Run the Magento indexer
|
data/capmagento.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path('../lib', __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'capmagento'
|
8
|
+
spec.version = '1.0.1'
|
9
|
+
spec.license = 'MIT'
|
10
|
+
spec.authors = [ "Sandor Czettner" ]
|
11
|
+
spec.email = 'sandor@czettner.hu'
|
12
|
+
spec.homepage = %q{https://github.com/czettnersandor/capmagento}
|
13
|
+
|
14
|
+
spec.platform = Gem::Platform::RUBY
|
15
|
+
spec.description = <<-DESC
|
16
|
+
A set of tasks for deploying Magento projects with Capistrano 3.
|
17
|
+
DESC
|
18
|
+
spec.summary = 'A set of tasks for deploying Magento projects with Capistrano 3'
|
19
|
+
|
20
|
+
|
21
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
|
+
spec.files = `git ls-files`.split($/)
|
23
|
+
specrequire_paths = ['lib']
|
24
|
+
|
25
|
+
spec.add_dependency 'capistrano', '~> 3.0', '>= 3.2.0'
|
26
|
+
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.3'
|
28
|
+
spec.add_development_dependency 'rake', '~> 10.1'
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Specific Magento tasks
|
2
|
+
namespace :mage do
|
3
|
+
desc 'Clear Magento Cache.'
|
4
|
+
task :cc do
|
5
|
+
on release_roles :all do
|
6
|
+
execute "cd #{current_path} && php -r \"require_once 'app/Mage.php'; umask(0); Mage::app()->cleanCache();\""
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'Clear Cheetah Cache'
|
11
|
+
task :hwscc do
|
12
|
+
on release_roles :all do
|
13
|
+
execute "cd #{current_path} && php -r \"require_once 'app/Mage.php'; umask(0); Mage::app(); Mage::getModel('hwscache/engine')->clean();\""
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
desc 'Disable the Magento install by creating the maintenance.flag in the web root'
|
18
|
+
task :disable do
|
19
|
+
on release_roles :all do
|
20
|
+
execute "cd #{current_path} && touch maintenance.flag"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc 'Enable the Magento stores by removing the maintenance.flag in the web root'
|
25
|
+
task :enable do
|
26
|
+
on release_roles :all do
|
27
|
+
execute "cd #{current_path} && rm -f maintenance.flag"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
desc 'Run the Magento indexer'
|
32
|
+
task :indexer do
|
33
|
+
on release_roles :all do
|
34
|
+
execute "cd #{current_path}/shell && php -f indexer.php -- reindexall"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
data/lib/capmagento.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../capistrano/tasks/magento.rake', __FILE__)
|
metadata
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: capmagento
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sandor Czettner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: capistrano
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 3.2.0
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 3.2.0
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: bundler
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.3'
|
40
|
+
type: :development
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rake
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '10.1'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '10.1'
|
61
|
+
description: " A set of tasks for deploying Magento projects with Capistrano 3.\n"
|
62
|
+
email: sandor@czettner.hu
|
63
|
+
executables: []
|
64
|
+
extensions: []
|
65
|
+
extra_rdoc_files: []
|
66
|
+
files:
|
67
|
+
- ".gitignore"
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- capmagento.gemspec
|
71
|
+
- lib/capistrano/tasks/magento.rake
|
72
|
+
- lib/capmagento.rb
|
73
|
+
homepage: https://github.com/czettnersandor/capmagento
|
74
|
+
licenses:
|
75
|
+
- MIT
|
76
|
+
metadata: {}
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options: []
|
79
|
+
require_paths:
|
80
|
+
- lib
|
81
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '0'
|
91
|
+
requirements: []
|
92
|
+
rubyforge_project:
|
93
|
+
rubygems_version: 2.2.2
|
94
|
+
signing_key:
|
95
|
+
specification_version: 4
|
96
|
+
summary: A set of tasks for deploying Magento projects with Capistrano 3
|
97
|
+
test_files: []
|