factorylabs-fdlcap 0.3.5 → 0.3.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.5
1
+ 0.3.6
@@ -0,0 +1,57 @@
1
+ #####################
2
+ # GLOBAL VARS
3
+ #####################
4
+
5
+ require 'fdlcap/recipes'
6
+ require 'lib/recipes/ftp_server'
7
+ require 'lib/recipes/queue_daemon'
8
+
9
+ #
10
+ # Bring in fdlcap recipes
11
+ #
12
+
13
+ use_recipe :symlink_configs
14
+ use_recipe :stages, [ :express, :staging, :production, :translation ]
15
+ use_recipe :symlinks
16
+ use_recipe :geminstaller
17
+ use_recipe :delayed_job
18
+ use_recipe :release_tagger, [ :ci, :staging, :production ]
19
+ use_recipe :sass
20
+ use_recipe :thinking_sphinx
21
+ use_recipe :newrelic
22
+ use_recipe :perform_cleanup
23
+ use_recipe :craken
24
+ use_recipe :custom_maintenance_page
25
+
26
+ #
27
+ # Symlink directories
28
+ #
29
+ set :symlink_dirs, [ 'data',
30
+ 'public/images/vehicles',
31
+ 'public/images/staff',
32
+ 'db/sphinx' ]
33
+
34
+ #
35
+ # SCM config
36
+ #
37
+ set :scm, :git
38
+ set :keep_releases, 5
39
+ set :repository, "git@github.com:factorylabs/fdlcap.git"
40
+ set :deploy_via, :remote_cache
41
+
42
+ #
43
+ # Callback config
44
+ #
45
+
46
+
47
+
48
+ #
49
+ # Custom Tasks
50
+ #
51
+
52
+ namespace :retrieve do
53
+ desc "run rake retrieve:import_dag"
54
+ task :import_dag, :roles => :db do
55
+ run "cd #{current_path} && RAILS_ENV=#{rails_env} rake retrieve:import_dag"
56
+ end
57
+ end
data/fdlcap.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fdlcap}
5
- s.version = "0.3.5"
5
+ s.version = "0.3.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Factory Design Labs"]
9
- s.date = %q{2009-07-02}
9
+ s.date = %q{2009-07-09}
10
10
  s.default_executable = %q{fdlcap}
11
11
  s.email = %q{interactive@factorylabs.com}
12
12
  s.executables = ["fdlcap"]
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  "Rakefile",
22
22
  "VERSION",
23
23
  "bin/fdlcap",
24
+ "examples/deploy.rb",
24
25
  "fdlcap.gemspec",
25
26
  "features/fdlcap.feature",
26
27
  "features/step_definitions/fdlcap_steps.rb",
@@ -63,7 +64,8 @@ Gem::Specification.new do |s|
63
64
  s.summary = %q{a set of capistrano recipies we use regularly at Factory Design Labs}
64
65
  s.test_files = [
65
66
  "test/fdlcap_test.rb",
66
- "test/test_helper.rb"
67
+ "test/test_helper.rb",
68
+ "examples/deploy.rb"
67
69
  ]
68
70
 
69
71
  if s.respond_to? :specification_version then
@@ -6,10 +6,33 @@ Capistrano::Configuration.instance(:must_exist).load do
6
6
  # This needs to be loaded after the stages are set up
7
7
  require 'release_tagger'
8
8
 
9
+ set :keep_release_tags, 5 unless exists?(:keep_release_tags)
10
+ namespace :release_tagger do
11
+ task :remove_previous_tags, :roles => :app do
12
+ keep_tags = fetch(:keep_release_tags, 5)
13
+ tags = `git tag`
14
+ tags = tags.split
15
+ stage_tags = {}
16
+ tags.each do |tag|
17
+ stage = tag.split('/').first
18
+ stage_tags[stage] = [] unless stage_tags.key?(stage)
19
+ stage_tags[stage] << tag
20
+ end
21
+
22
+ stage_tags.each do |stage, tags|
23
+ # remove all tags but the last n number
24
+ tags[0..-(keep_tags + 1)].each do |tag|
25
+ puts `git push origin :refs/tags/#{tag}`
26
+ end
27
+ end
28
+ end
29
+ end
30
+
9
31
  # Run release tagger to get the right release for the deploy
10
32
  before "deploy:update_code", "release_tagger:set_branch"
11
33
  before "deploy:cleanup", "release_tagger:create_tag"
12
34
  before "deploy:cleanup", "release_tagger:write_tag_to_shared"
13
35
  before "deploy:cleanup", "release_tagger:print_latest_tags"
36
+ before "deploy:cleanup", "release_tagger:remove_previous_tags"
14
37
  end
15
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-02 00:00:00 -07:00
12
+ date: 2009-07-09 00:00:00 -07:00
13
13
  default_executable: fdlcap
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -68,6 +68,7 @@ files:
68
68
  - Rakefile
69
69
  - VERSION
70
70
  - bin/fdlcap
71
+ - examples/deploy.rb
71
72
  - fdlcap.gemspec
72
73
  - features/fdlcap.feature
73
74
  - features/step_definitions/fdlcap_steps.rb
@@ -131,3 +132,4 @@ summary: a set of capistrano recipies we use regularly at Factory Design Labs
131
132
  test_files:
132
133
  - test/fdlcap_test.rb
133
134
  - test/test_helper.rb
135
+ - examples/deploy.rb