capobvious 0.0.4 → 0.0.5

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/capobvious.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "capobvious"
@@ -46,7 +46,9 @@ 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"
49
+ after "deploy:setup", "db:create", "nginx:conf", "install:p7zip"
50
+
51
+
50
52
  namespace :auto do
51
53
  task :run do
52
54
  if exists?(:assets) && fetch(:assets) == true
@@ -139,7 +141,8 @@ namespace :backup do
139
141
  require 'yaml'
140
142
  run "mkdir -p #{shared_path}/backup"
141
143
  if adapter == "postgresql"
142
- run "pg_dump -U #{db_username} #{database} > #{dump_file_path}"
144
+
145
+ run "export PGPASSWORD=\"#{db_password}\" && pg_dump -U #{db_username} #{database} > #{dump_file_path}"
143
146
  run "cd #{shared_path} && 7z a #{output_file} #{dump_file_path} && rm #{dump_file_path}"
144
147
  else
145
148
  puts "Cannot backup, adapter #{adapter} is not implemented for backup yet"
@@ -262,6 +265,9 @@ namespace :install do
262
265
  task :aptnyaa do
263
266
  run "#{sudo} apt-get --assume-yes install wget > /dev/null 2>&1 && cd /usr/bin/ && #{sudo} wget -Nq https://raw.github.com/nyaa/UbuntuScript/master/apt-nyaa && #{sudo} chmod +x apt-nyaa"
264
267
  end
268
+ task :p7zip do
269
+ run "#{sudo} apt-get --assume-yes install p7zip-full"
270
+ end
265
271
  end
266
272
 
267
273
 
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.4
4
+ version: 0.0.5
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-22 00:00:00.000000000 Z
12
+ date: 2012-02-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capfile that we use every day
15
15
  email:
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
44
  version: '0'
45
45
  requirements: []
46
46
  rubyforge_project: capobvious
47
- rubygems_version: 1.8.10
47
+ rubygems_version: 1.8.17
48
48
  signing_key:
49
49
  specification_version: 3
50
50
  summary: Cap recipes