magentify 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e107e22d07025ba95e1ed3863f60cd9a5dc77bb1
4
+ data.tar.gz: 232e33f75ee3a5663479163770d3d43fff400e18
5
+ SHA512:
6
+ metadata.gz: 2fea9054b8aeccb8cc0798585cf3306977bd451ab77b09cf4abae2d7f757c6da6a3724a3f6684a8fe08a9509131e364b02d0707299ae83dff731db78213972d5
7
+ data.tar.gz: 94f4743283f9a2861ff85d8aaef514b7e665438ed850c39dd0b12a6ae79eccaed8e85e2cb548e0527e807a4c6d958a5bfa1a5f8e476631bd344b2fcb36779e5a
data/README.md CHANGED
@@ -1,18 +1,19 @@
1
1
  # Magentify
2
2
 
3
- [Capistrano](http://capify.org) is an open source tool for executing commands on multiple servers in parallel. It is intended to be used to easily deploying applications. While it was built specifically for deploying Rails apps, it is designed to be easily extended to deploy any type of application or run any number of commands. This project is a deployment recipes collection that works specifically with [Magento](http://www.magentocommerce.com/).
3
+ [Capistrano](http://www.capistranorb.com/) is an open source tool for executing commands on multiple servers in parallel. It is intended to be used to easily deploying applications. While it was built specifically for deploying Rails apps, it is designed to be easily extended to deploy any type of application or run any number of commands. This project is a deployment recipes collection that works specifically with [Magento](http://www.magentocommerce.com/).
4
4
 
5
5
  ## Installation
6
6
 
7
7
  $ gem install magentify
8
-
8
+
9
9
  ## Project setup
10
10
 
11
11
  $ magentify .
12
+ $ bundle install
12
13
 
13
14
  ## Usage
14
15
 
15
- Once you have run `magentify` on your project it will add a Capfile and deploy.rb configuration file
16
+ Once you have run `magentify` on your project it will add a Capfile and deploy.rb configuration file, and a Gemfile for all the dependencies
16
17
 
17
18
  ```ruby
18
19
  set :application, "magento"
@@ -35,12 +36,12 @@ set :app_shared_files, ["/app/etc/local.xml"]
35
36
 
36
37
  Once you have magentified your project you can run:
37
38
 
38
- $ cap -T
39
-
39
+ $ bundle exec cap -T
40
+
40
41
  This will list all the available tasks that can be run with a shot description. For more detailed information about each of the tests run:
41
42
 
42
- $ cap -e [task_name]
43
-
43
+ $ bundle exec cap -e [task_name]
44
+
44
45
  For detailed information about how to configure and use Capistrano for deployment you should read the Capistrano wiki pages:
45
46
 
46
47
  * [Getting Started](https://github.com/capistrano/capistrano/wiki/2.x-Getting-Started)
@@ -56,3 +57,11 @@ For detailed information about how to configure and use Capistrano for deploymen
56
57
  6. Commit your changes (`git commit -am 'Added some feature'`)
57
58
  7. Push to the branch (`git push origin my-new-feature`)
58
59
  8. Create new Pull Request
60
+
61
+ ##Getting your development environment to work
62
+
63
+ 1. You're going to need a working sshd server in your localhost, and access for your
64
+ development user without password.
65
+ 2. Download the project
66
+ 3. ```bundle install``` to install the dependencies
67
+ 4. ```bundle exec cucumber``` to run the tests
data/bin/magentify CHANGED
@@ -60,7 +60,13 @@ set :keep_releases, 3
60
60
 
61
61
  set :app_symlinks, ["/media", "/var", "/sitemaps", "/staging"]
62
62
  set :app_shared_dirs, ["/app/etc", "/sitemaps", "/media", "/var", "/staging"]
63
- set :app_shared_files, ["/app/etc/local.xml"]'
63
+ set :app_shared_files, ["/app/etc/local.xml"]',
64
+
65
+ "Gemfile" => unindent(<<-FILE),
66
+ source 'http://rubygems.org'
67
+
68
+ gem 'magentify'
69
+ FILE
64
70
 
65
71
  }
66
72
 
@@ -80,4 +86,4 @@ files.each do |file, content|
80
86
  end
81
87
  end
82
88
 
83
- puts "[done] Magento project capified with magentify!"
89
+ puts "[done] Magento project capified with magentify!"
@@ -8,6 +8,11 @@ Feature: Magentify
8
8
  When I execute magentify .
9
9
  Then Capfile should load mage.rb
10
10
 
11
+ Scenario: User runs $ magentify .
12
+ Given an app
13
+ When I execute magentify .
14
+ Then Gemfile should load the magentify gem
15
+
11
16
  Scenario: User runs $ cap -T
12
17
  Given an app
13
18
  When I execute cap -T
@@ -8,6 +8,10 @@ Then /^Capfile should load mage\.rb$/ do
8
8
  File.open(File.join(@src_dir, "Capfile"), 'rb').read().match('mage\.rb').should be_true
9
9
  end
10
10
 
11
+ Then /^Gemfile should load the magentify gem$/ do
12
+ File.open(File.join(@src_dir, "Gemfile"), 'rb').read().match('magentify').should be_true
13
+ end
14
+
11
15
  When /^I execute cap \-T$/ do
12
16
  Dir.chdir(@src_dir) do
13
17
  system "cap -T > /dev/null 2>&1"
@@ -19,4 +23,4 @@ Then /^mage tasks should be listed$/ do
19
23
  result = %x[cap -T]
20
24
  result.match('Clear the Magento Cache').should be_true
21
25
  end
22
- end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Magentify
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/magentify.gemspec CHANGED
@@ -16,6 +16,8 @@ Gem::Specification.new do |gem|
16
16
  gem.require_paths = ["lib"]
17
17
  gem.version = Magentify::VERSION
18
18
 
19
- gem.add_dependency 'capistrano', ">= 2.5.10"
19
+ gem.add_dependency 'capistrano', ">= 2.5.10", "~> 2"
20
+ gem.add_development_dependency 'cucumber'
21
+ gem.add_development_dependency 'rspec'
20
22
 
21
23
  end
metadata CHANGED
@@ -1,32 +1,63 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magentify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
5
- prerelease:
4
+ version: 0.0.7
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alistair Stead
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.5.10
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: '2'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: 2.5.10
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: '2'
33
+ - !ruby/object:Gem::Dependency
34
+ name: cucumber
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
30
61
  description: An extension to Capistrano to deploy Magento. Adding the specific requirements
31
62
  and additional tasks.
32
63
  email:
@@ -67,27 +98,26 @@ files:
67
98
  homepage: https://github.com/alistairstead/Magentify
68
99
  licenses:
69
100
  - MIT
101
+ metadata: {}
70
102
  post_install_message:
71
103
  rdoc_options: []
72
104
  require_paths:
73
105
  - lib
74
106
  required_ruby_version: !ruby/object:Gem::Requirement
75
- none: false
76
107
  requirements:
77
- - - ! '>='
108
+ - - '>='
78
109
  - !ruby/object:Gem::Version
79
110
  version: '0'
80
111
  required_rubygems_version: !ruby/object:Gem::Requirement
81
- none: false
82
112
  requirements:
83
- - - ! '>='
113
+ - - '>='
84
114
  - !ruby/object:Gem::Version
85
115
  version: '0'
86
116
  requirements: []
87
117
  rubyforge_project:
88
- rubygems_version: 1.8.23
118
+ rubygems_version: 2.0.3
89
119
  signing_key:
90
- specification_version: 3
120
+ specification_version: 4
91
121
  summary: Deploying Magento PHP applications with Capistrano.
92
122
  test_files:
93
123
  - features/compiler.feature