capistrano-wp 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,58 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require 'crowdfavorite/tasks/wordpress'
3
+
4
+ describe CrowdFavorite::Tasks::WordPress, "loaded into capistrano" do
5
+ before do
6
+ @configuration = Capistrano::Configuration.new
7
+ @configuration.extend(Capistrano::Spec::ConfigurationExtension)
8
+ CrowdFavorite::Tasks::WordPress.load_into(@configuration)
9
+ end
10
+
11
+ it "defines cf:wordpress:install" do
12
+ @configuration.find_task('cf:wordpress:install').should_not == nil
13
+ end
14
+
15
+ it "defines cf:wordpress:install:with_remote_cache" do
16
+ @configuration.find_task('cf:wordpress:install:with_remote_cache').should_not == nil
17
+ end
18
+
19
+ it "defines cf:wordpress:install:with_copy" do
20
+ @configuration.find_task('cf:wordpress:install:with_copy').should_not == nil
21
+ end
22
+
23
+ it "defines cf:wordpress:generate_config" do
24
+ @configuration.find_task('cf:wordpress:generate_config').should_not == nil
25
+ end
26
+
27
+ it "defines cf:wordpress:link_symlinks" do
28
+ @configuration.find_task('cf:wordpress:link_symlinks').should_not == nil
29
+ end
30
+
31
+ it "defines cf:wordpress:copy_configs" do
32
+ @configuration.find_task('cf:wordpress:copy_configs').should_not == nil
33
+ end
34
+
35
+ it "defines cf:wordpress:touch_release" do
36
+ @configuration.find_task('cf:wordpress:touch_release').should_not == nil
37
+ end
38
+
39
+ it "does cf:wordpress:touch_release before deploy:cleanup" do
40
+ @configuration.should callback('cf:wordpress:touch_release').after('deploy:finalize_update')
41
+ end
42
+
43
+ it "does cf:wordpress:generate_config before deploy:finalize_update" do
44
+ @configuration.should callback('cf:wordpress:generate_config').before('deploy:finalize_update')
45
+ end
46
+
47
+ it "does cf:wordpress:link_symlinks after cf:wordpress:generate_config" do
48
+ @configuration.should callback('cf:wordpress:link_symlinks').after('cf:wordpress:generate_config')
49
+ end
50
+
51
+ it "does cf:wordpress:copy_configs after cf:wordpress:link_symlinks" do
52
+ @configuration.should callback('cf:wordpress:copy_configs').after('cf:wordpress:link_symlinks')
53
+ end
54
+
55
+ it "does cf:wordpress:install after cf:wordpress:copy_configs" do
56
+ @configuration.should callback('cf:wordpress:install').after('cf:wordpress:copy_configs')
57
+ end
58
+ end
@@ -0,0 +1,32 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ require 'crowdfavorite/tasks/localchanges'
3
+
4
+ describe CrowdFavorite::Tasks::LocalChanges, "loaded into capistrano" do
5
+ before do
6
+ @configuration = Capistrano::Configuration.new
7
+ @configuration.extend(Capistrano::Spec::ConfigurationExtension)
8
+ CrowdFavorite::Tasks::LocalChanges.load_into(@configuration)
9
+ end
10
+
11
+ it "defines cf:localchanges:snapshot" do
12
+ @configuration.find_task('cf:localchanges:snapshot').should_not == nil
13
+ end
14
+ it "defines cf:localchanges:compare" do
15
+ @configuration.find_task('cf:localchanges:compare').should_not == nil
16
+ end
17
+ it "defines cf:localchanges:allow_differences" do
18
+ @configuration.find_task('cf:localchanges:allow_differences').should_not == nil
19
+ end
20
+ it "defines cf:localchanges:forbid_differences" do
21
+ @configuration.find_task('cf:localchanges:forbid_differences').should_not == nil
22
+ end
23
+ it "sets snapshot_allow_differences to false" do
24
+ @configuration.find_and_execute_task('cf:localchanges:forbid_differences')
25
+ @configuration.fetch(:snapshot_allow_differences, nil).should === false
26
+ end
27
+ it "sets snapshot_allow_differences to true" do
28
+ @configuration.find_and_execute_task('cf:localchanges:allow_differences')
29
+ @configuration.fetch(:snapshot_allow_differences, nil).should === true
30
+ end
31
+ end
32
+
@@ -0,0 +1,23 @@
1
+ require 'bundler'
2
+ begin
3
+ Bundler.setup(:default, :development)
4
+ rescue Bundler::BundlerError => e
5
+ $stderr.puts e.message
6
+ $stderr.puts "Run `bundle install` to install missing gems"
7
+ exit e.status_code
8
+ end
9
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
10
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
11
+ require 'crowdfavorite'
12
+ require 'rspec'
13
+ require 'rspec/autorun'
14
+
15
+ CrowdFavorite::Support::Namespace.default_config = nil
16
+
17
+ # Requires supporting files with custom matchers and macros, etc,
18
+ # in ./support/ and its subdirectories.
19
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
20
+
21
+ RSpec.configure do |config|
22
+
23
+ end
@@ -0,0 +1,6 @@
1
+ require 'capistrano/spec'
2
+
3
+ RSpec.configure do |config|
4
+ config.include Capistrano::Spec::Helpers
5
+ config.include Capistrano::Spec::Matchers
6
+ end
metadata ADDED
@@ -0,0 +1,218 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-wp
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Crowd Favorite
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 2.15.3
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 2.15.3
30
+ - !ruby/object:Gem::Dependency
31
+ name: capistrano-ext
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 1.2.1
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.1
46
+ - !ruby/object:Gem::Dependency
47
+ name: railsless-deploy
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.1.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.1.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: erubis
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.7.0
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.7.0
78
+ - !ruby/object:Gem::Dependency
79
+ name: rspec
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ~>
84
+ - !ruby/object:Gem::Version
85
+ version: '2.11'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '2.11'
94
+ - !ruby/object:Gem::Dependency
95
+ name: bundler
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '1.0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '1.0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: jeweler
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '1.8'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '1.8'
126
+ - !ruby/object:Gem::Dependency
127
+ name: simplecov
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ type: :development
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
143
+ name: capistrano-spec
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ description: ! " Recipes for deploying and maintaining remote WordPress installations
159
+ with\n Capistrano. Pulls in WordPress from SVN, optionally using a local or
160
+ \n remote cache, and supports a number of common operations and tasks towards\n
161
+ \ the care and feeding of sites that may not be 100% maintained through \n version
162
+ control.\n"
163
+ email:
164
+ executables: []
165
+ extensions: []
166
+ extra_rdoc_files:
167
+ - LICENSE.txt
168
+ - README.md
169
+ files:
170
+ - .document
171
+ - Gemfile
172
+ - Gemfile.lock
173
+ - LICENSE.txt
174
+ - README.md
175
+ - Rakefile
176
+ - VERSION
177
+ - capistrano-wp.gemspec
178
+ - lib/capistrano-wp.rb
179
+ - lib/capistrano/crowdfavorite/wordpress.rb
180
+ - lib/crowdfavorite.rb
181
+ - lib/crowdfavorite/support/capistrano_extensions.rb
182
+ - lib/crowdfavorite/support/namespace.rb
183
+ - lib/crowdfavorite/tasks.rb
184
+ - lib/crowdfavorite/tasks/localchanges.rb
185
+ - lib/crowdfavorite/tasks/wordpress.rb
186
+ - lib/crowdfavorite/version.rb
187
+ - lib/crowdfavorite/wordpress.rb
188
+ - spec/.rspec
189
+ - spec/capistrano-wp_spec.rb
190
+ - spec/localchanges_spec.rb
191
+ - spec/spec_helper.rb
192
+ - spec/support/capistrano.rb
193
+ homepage: http://github.com/crowdfavorite/gem-capistrano-wp
194
+ licenses:
195
+ - GPL
196
+ post_install_message:
197
+ rdoc_options: []
198
+ require_paths:
199
+ - lib
200
+ required_ruby_version: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ none: false
208
+ requirements:
209
+ - - ! '>='
210
+ - !ruby/object:Gem::Version
211
+ version: '0'
212
+ requirements: []
213
+ rubyforge_project:
214
+ rubygems_version: 1.8.25
215
+ signing_key:
216
+ specification_version: 3
217
+ summary: Crowd Favorite WordPress Capistrano recipes
218
+ test_files: []