easy-deployment 0.1.1 → 0.1.2

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.
@@ -2,8 +2,8 @@
2
2
  require File.expand_path('../lib/easy-deployment/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
- gem.authors = ["Jeremy Olliver", "Nigel Ramsay", "Shevaun Coker"]
6
- gem.email = ["jeremy.olliver@gmail.com", "nigel.ramsay@abletech.co.nz", "shevaun.coker@abletech.co.nz"]
5
+ gem.authors = ["Jeremy Olliver", "Nigel Ramsay", "Shevaun Coker", "Cameron Fowler"]
6
+ gem.email = ["jeremy.olliver@gmail.com", "nigel.ramsay@abletech.co.nz", "shevaun.coker@abletech.co.nz", "hiding.in.a.box@gmail.com"]
7
7
  gem.description = %q{Easy deployment: includes a generator, and capistrano configuration}
8
8
  gem.summary = %q{Gem for encapsulating abletech's deployment practices}
9
9
  gem.homepage = ""
@@ -1,5 +1,5 @@
1
1
  module Easy
2
2
  module Deployment
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -5,7 +5,8 @@ Capistrano::Configuration.instance(:must_exist).load do
5
5
  namespace :apache do
6
6
  desc "Configure this site & Reload the apache configuration"
7
7
  task :configure, :roles => :app, :except => { :no_release => true } do
8
- run "cp -f #{current_path}/config/deploy/#{stage}/apache/* /etc/apache2/sites-enabled/"
8
+ run "cp -f #{current_path}/config/deploy/#{stage}/apache.conf /etc/apache2/sites-available/#{application}"
9
+ run "ln -fs /etc/apache2/sites-available/#{application} /etc/apache2/sites-enabled/#{application}"
9
10
  end
10
11
 
11
12
  [:stop, :start, :restart].each do |action|
@@ -16,5 +17,6 @@ Capistrano::Configuration.instance(:must_exist).load do
16
17
  end
17
18
  end
18
19
 
20
+ before 'deploy:start', 'apache:configure'
19
21
  after 'apache:configure', 'apache:restart'
20
22
  end
@@ -9,14 +9,12 @@ Capistrano::Configuration.instance(:must_exist).load do
9
9
  default_run_options[:pty] = true
10
10
 
11
11
  namespace :deploy do
12
- desc "Initial deploy including database creation and apache2 config setup"
12
+ desc "Initial deploy including database creation and triggers hooks on start. Require 'easy/deployment/apache' to configure and restart apache as part of this task, and require 'easy/deployment/logrotate' to setup logrotate as part of this task"
13
13
  task :initial do
14
14
  set :migrate_target, :latest
15
15
  update # updates_code and creates symlink
16
16
  create_db
17
17
  migrate
18
- top.namespace(:logrotate) {setup}
19
- top.namespace(:apache) {configure; restart}
20
18
  start # doesn't do anything but triggers associated hooks
21
19
  end
22
20
 
@@ -67,13 +65,5 @@ Capistrano::Configuration.instance(:must_exist).load do
67
65
  end
68
66
  end
69
67
 
70
- namespace :web do
71
- desc "Deprecated - use apache:configure instead"
72
- task :configure, :roles => :app, :except => { :no_release => true } do
73
- puts "Deprecated - use apache:configure instead"
74
- end
75
- end
76
-
77
-
78
68
  before 'deploy:update_code', 'deploy:set_branch' # allow specification of branch, tag or commit on the command line
79
69
  end
@@ -6,4 +6,6 @@ Capistrano::Configuration.instance(:must_exist).load do
6
6
  run "cp #{current_path}/config/deploy/#{stage}/logrotate.conf /etc/logrotate.d/#{application}.conf"
7
7
  end
8
8
  end
9
+
10
+ before 'deploy:start', 'logrotate:setup'
9
11
  end
metadata CHANGED
@@ -1,17 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-deployment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jeremy Olliver
9
9
  - Nigel Ramsay
10
10
  - Shevaun Coker
11
+ - Cameron Fowler
11
12
  autorequire:
12
13
  bindir: bin
13
14
  cert_chain: []
14
- date: 2012-06-27 00:00:00.000000000 Z
15
+ date: 2012-07-01 00:00:00.000000000 Z
15
16
  dependencies:
16
17
  - !ruby/object:Gem::Dependency
17
18
  name: rails
@@ -114,6 +115,7 @@ email:
114
115
  - jeremy.olliver@gmail.com
115
116
  - nigel.ramsay@abletech.co.nz
116
117
  - shevaun.coker@abletech.co.nz
118
+ - hiding.in.a.box@gmail.com
117
119
  executables: []
118
120
  extensions: []
119
121
  extra_rdoc_files: []
@@ -153,12 +155,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
153
155
  - - ! '>='
154
156
  - !ruby/object:Gem::Version
155
157
  version: '0'
158
+ segments:
159
+ - 0
160
+ hash: 4265744311530263395
156
161
  required_rubygems_version: !ruby/object:Gem::Requirement
157
162
  none: false
158
163
  requirements:
159
164
  - - ! '>='
160
165
  - !ruby/object:Gem::Version
161
166
  version: '0'
167
+ segments:
168
+ - 0
169
+ hash: 4265744311530263395
162
170
  requirements: []
163
171
  rubyforge_project:
164
172
  rubygems_version: 1.8.24
@@ -168,4 +176,3 @@ summary: Gem for encapsulating abletech's deployment practices
168
176
  test_files:
169
177
  - spec/easy_deployment_spec.rb
170
178
  - spec/spec_helper.rb
171
- has_rdoc: