capistrano-helpers 0.4.0 → 0.4.1

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/CHANGELOG.markdown CHANGED
@@ -1,15 +1,20 @@
1
1
  # Capistrano-Helpers Changelog
2
2
 
3
+ ## 0.4.1
4
+
5
+ New:
6
+
7
+ * Added "deploy:skyline:seed_roles" for SkylineCMS helper. This reseeds role information for Skyline projects.
8
+
3
9
  ## 0.4.0
4
10
 
5
11
  New:
6
12
 
7
13
  * Wrote new helpers for SkylineCMS. See http://skylinecms.nl
8
-
9
- * Changes permissions on folders. Some things like Sprockets require folders to be writable.
10
- * Creates the needed cache directories, with appropriate permissions.
11
- * Creates upload folder if it doesn't exist, then creates the symlink to it.
12
- * Runs skyline's migrations on the remote server.
14
+ * Changes permissions on folders. Some things like Sprockets require folders to be writable.
15
+ * Creates the needed cache directories, with appropriate permissions.
16
+ * Creates upload folder if it doesn't exist, then creates the symlink to it.
17
+ * Runs skyline's migrations on the remote server.
13
18
 
14
19
  ## Pre-0.4.0
15
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-helpers}
8
- s.version = "0.4.0"
8
+ s.version = "0.4.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Scott Woods"]
12
- s.date = %q{2010-05-10}
12
+ s.date = %q{2010-05-18}
13
13
  s.description = %q{A set of optional extensions to capistrano to make common tasks easier.}
14
14
  s.email = %q{scott@westarete.com}
15
15
  s.extra_rdoc_files = [
@@ -40,7 +40,6 @@ Gem::Specification.new do |s|
40
40
  "lib/capistrano-helpers/skylinecms.rb",
41
41
  "lib/capistrano-helpers/specs.rb",
42
42
  "lib/capistrano-helpers/version.rb",
43
- "test/capistrano-helpers_test.rb",
44
43
  "test/test_helper.rb"
45
44
  ]
46
45
  s.homepage = %q{http://github.com/westarete/capistrano-helpers}
@@ -49,8 +48,7 @@ Gem::Specification.new do |s|
49
48
  s.rubygems_version = %q{1.3.6}
50
49
  s.summary = %q{A set of optional extensions to capistrano to make common tasks easier.}
51
50
  s.test_files = [
52
- "test/capistrano-helpers_test.rb",
53
- "test/test_helper.rb"
51
+ "test/test_helper.rb"
54
52
  ]
55
53
 
56
54
  if s.respond_to? :specification_version then
@@ -12,7 +12,7 @@ CapistranoHelpers.with_configuration do
12
12
  end
13
13
 
14
14
  desc "Create cache directories on the remote server."
15
- task :create_cache_dirctories, :roles => :app do
15
+ task :create_cache_directories, :roles => :app do
16
16
  cache_paths = [
17
17
  "#{release_path}/tmp/cache/media_files/cache",
18
18
  "#{release_path}/tmp/cache/rss_sections/cache"
@@ -39,11 +39,26 @@ CapistranoHelpers.with_configuration do
39
39
  rails_env = fetch(:rails_env, "production")
40
40
  run "cd #{release_path} && #{sudo} rake skylinecms:db:migrate RAILS_ENV=#{rails_env}"
41
41
  end
42
+
43
+ desc "Seed roles that are set in the project's fixtures folder."
44
+ task :seed_roles, :roles => :app do
45
+ roles_path = "#{release_path}/db/fixtures/roles.rb"
46
+ rails_env = fetch(:rails_env, "production")
47
+ # Ensure the roles file is executable.
48
+ run "sudo chmod +x #{roles_path}"
49
+ # Run the roles file.
50
+ run "sudo ./#{roles_path} RAILS_ENV=#{rails_env}"
51
+ end
42
52
 
43
53
  end
44
54
  end
45
55
 
46
56
  # Always run migrations.
47
- after "deploy:update_code", "deploy:skylinecms:make_writeable", "deploy:skylinecms:create_cache_dirctories", "deploy:skylinecms:create_upload_directory", "deploy:skylinecms:migrate"
57
+ after "deploy:update_code",
58
+ "deploy:skyline:make_writeable",
59
+ "deploy:skyline:create_cache_directories",
60
+ "deploy:skyline:create_upload_directory",
61
+ "deploy:skyline:migrate",
62
+ "deploy:skyline:seed_roles"
48
63
 
49
64
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Woods
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-10 00:00:00 -04:00
17
+ date: 2010-05-18 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -64,7 +64,6 @@ files:
64
64
  - lib/capistrano-helpers/skylinecms.rb
65
65
  - lib/capistrano-helpers/specs.rb
66
66
  - lib/capistrano-helpers/version.rb
67
- - test/capistrano-helpers_test.rb
68
67
  - test/test_helper.rb
69
68
  has_rdoc: true
70
69
  homepage: http://github.com/westarete/capistrano-helpers
@@ -97,5 +96,4 @@ signing_key:
97
96
  specification_version: 3
98
97
  summary: A set of optional extensions to capistrano to make common tasks easier.
99
98
  test_files:
100
- - test/capistrano-helpers_test.rb
101
99
  - test/test_helper.rb
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class CapistranoHelpersTest < Test::Unit::TestCase
4
- should "probably rename this file and start testing for real" do
5
- flunk "hey buddy, you should probably rename this file and start testing for real"
6
- end
7
- end