capistrano-helpers 0.4.1 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.3
@@ -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.1"
8
+ s.version = "0.4.3"
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-18}
12
+ s.date = %q{2010-05-21}
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 = [
@@ -8,13 +8,15 @@ CapistranoHelpers.with_configuration do
8
8
  desc "Make certain directories writeable."
9
9
  task :make_writeable, :roles => :app do
10
10
  # Make this directory writeable so sprockets can compress the javascript.
11
- run "sudo chown passenger #{release_path}/public/skylinecms/javascripts"
11
+ run "sudo chown passenger #{release_path}/public/skyline/javascripts"
12
12
  end
13
13
 
14
14
  desc "Create cache directories on the remote server."
15
15
  task :create_cache_directories, :roles => :app do
16
16
  cache_paths = [
17
17
  "#{release_path}/tmp/cache/media_files/cache",
18
+ "#{release_path}/tmp/cache/posterous_sections/cache",
19
+ "#{release_path}/tmp/cache/twitter_sections/cache",
18
20
  "#{release_path}/tmp/cache/rss_sections/cache"
19
21
  ]
20
22
  cache_paths.each do |cache_path|
@@ -37,17 +39,7 @@ CapistranoHelpers.with_configuration do
37
39
  desc "Run skylinecms migrations on the remote server."
38
40
  task :migrate, :roles => :app do
39
41
  rails_env = fetch(:rails_env, "production")
40
- run "cd #{release_path} && #{sudo} rake skylinecms:db:migrate RAILS_ENV=#{rails_env}"
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}"
42
+ run "cd #{release_path} && #{sudo} rake skyline:db:migrate RAILS_ENV=#{rails_env}"
51
43
  end
52
44
 
53
45
  end
@@ -55,10 +47,9 @@ CapistranoHelpers.with_configuration do
55
47
 
56
48
  # Always run migrations.
57
49
  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"
50
+ "deploy:skylinecms:make_writeable",
51
+ "deploy:skylinecms:create_cache_directories",
52
+ "deploy:skylinecms:create_upload_directory",
53
+ "deploy:skylinecms:migrate"
63
54
 
64
55
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 3
9
+ version: 0.4.3
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-18 00:00:00 -04:00
17
+ date: 2010-05-21 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency