capobvious 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/capobvious.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "capobvious"
@@ -46,7 +46,7 @@ set :db_archive_ext, "7z"
46
46
 
47
47
  #after "deploy:symlink", "auto:run"
48
48
  before "deploy:restart", "auto:run"
49
- after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
49
+ #after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
50
50
 
51
51
 
52
52
  namespace :auto do
@@ -60,9 +60,14 @@ namespace :auto do
60
60
  end
61
61
  bundle.install
62
62
  if exists?(:auto_migrate) && fetch(:auto_migrate) == true
63
- deploy.migrate
63
+ db.migrate
64
64
  end
65
65
  end
66
+ task :prepare do
67
+ db.create
68
+ nginx.conf
69
+ install.p7zip
70
+ end
66
71
  end
67
72
  namespace :create do
68
73
  task :files do
@@ -92,6 +97,9 @@ namespace :db do
92
97
  task :reset do
93
98
  run "cd #{current_path} && bundle exec rake RAILS_ENV=#{rails_env} db:reset"
94
99
  end
100
+ task :migrate do
101
+ run "cd #{current_path} && bundle exec rake RAILS_ENV=#{rails_env} db:migrate"
102
+ end
95
103
  task :import do
96
104
  file_name = "#{db_file_name}.#{db_archive_ext}"
97
105
  file_path = "#{local_folder_path}/#{file_name}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capobvious
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-28 00:00:00.000000000 Z
12
+ date: 2012-02-29 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capfile that we use every day
15
15
  email: