simple_generators 0.3.0 → 0.3.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -37,7 +37,6 @@ class SimpleCapistranoRecipeGenerator < Rails::Generator::Base
37
37
  @input[:deploy_path] ||= "/var/rails/example.com"
38
38
  @input[:repository_type] ||= "git"
39
39
  @input[:repository_url] ||= "ssh://root@example.com/var/git/example.git"
40
- @input[:reeip] ||= "/opt/ruby-enterprise-1.8.6-20090610"
41
40
  @input[:ssh_address] ||= nil
42
41
  @input[:crontab_id] ||= nil
43
42
  end
@@ -78,17 +78,13 @@ set :scm, "<%= input[:repository_type] %>"
78
78
  set :repository, "<%= input[:repository_url] %>"
79
79
  set :branch, "master"
80
80
 
81
- # Ruby Enterprise Edition
82
- set :ruby_enterprise_edition_installation_path, "<%= input[:reeip] %>"
83
-
84
81
  # Required: default_run_options[:pty] - This will allow the user to connect to protected repository after
85
82
  # logging in when the system prompts for the server's root password
86
83
  # default_run_options => (default is true)
87
84
  default_run_options[:pty] = true
88
85
 
89
86
 
90
- # TASKS
91
- # You can add additional deployment tasks, or alter the ones below.
87
+ # Deployment Tasks
92
88
 
93
89
  namespace :deploy do
94
90
 
@@ -130,27 +126,26 @@ namespace :deploy do
130
126
 
131
127
  desc "Installs any 'not-yet-installed' gems on the production server."
132
128
  task :install_gems do
133
- run "cd #{current_path}; #{ruby_enterprise_edition_installation_path}/bin/rake gems:install RAILS_ENV=production"
134
129
  run "cd #{current_path}; rake gems:install RAILS_ENV=production"
135
130
  end
136
131
 
137
- desc "Update the crontab file"
132
+ desc "Update the crontab file for the Whenever Gem."
138
133
  task :update_crontab, :roles => :db do
139
134
  run "cd #{release_path} && whenever --update-crontab #{crontab_id}"
140
135
  end
136
+
137
+ desc "Manages the Backup database for the Backup Gem."
138
+ task :setup_backup do
139
+ run "cd #{release_path} && rake backup:setup:capistrano"
140
+ end
141
141
 
142
142
  end
143
143
 
144
144
 
145
- # CALLBACKS
146
- # By adding more tasks, you might want to add more callbacks.
147
- # Just append more callbacks to the existing ones below.
148
-
149
- after 'deploy:setup', 'deploy:setup_shared'
150
- after 'deploy:setup', 'deploy:sync_database_yaml'
151
- after 'deploy:update_code', 'deploy:setup_symlinks'
145
+ # Deployment Task Callbacks
152
146
 
153
- # Javan-Whenever RubyGem
154
- # If you're using this gem and want to update the cron on the server after every deployment
155
- # then simply uncomment the line below:
156
- #after 'deploy:symlink', 'deploy:update_crontab'
147
+ after 'deploy:setup', 'deploy:setup_shared'
148
+ after 'deploy:setup', 'deploy:sync_database_yaml'
149
+ after 'deploy:update_code', 'deploy:setup_symlinks'
150
+ #after 'deploy:update_code', 'deploy:setup_backup'
151
+ #after 'deploy:symlink', 'deploy:update_crontab'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simple_generators}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael van Rooijen"]
12
- s.date = %q{2009-10-09}
12
+ s.date = %q{2009-10-15}
13
13
  s.description = %q{A couple of generators that supply you with some common templates to speed up the development process.}
14
14
  s.email = %q{meskyan@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van Rooijen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-09 00:00:00 +02:00
12
+ date: 2009-10-15 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies: []
15
15