rezzza_capistrano_tools 0.1.0.dev
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.md +2 -0
- data/lib/rezzza_capistrano_tools.rb +22 -0
- data/lib/vaultage.rb +27 -0
- metadata +73 -0
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 VeryLastRoom
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'capistrano'
|
2
|
+
require 'capistrano/maintenance'
|
3
|
+
require 'colored'
|
4
|
+
require 'fileutils'
|
5
|
+
require 'inifile'
|
6
|
+
require 'yaml'
|
7
|
+
require 'zlib'
|
8
|
+
require 'ruby-progressbar'
|
9
|
+
|
10
|
+
module RezzzaCapistranoTools
|
11
|
+
def self.load_into(configuration)
|
12
|
+
configuration.load do
|
13
|
+
|
14
|
+
load_paths.push File.expand_path('../', __FILE__)
|
15
|
+
load 'vaultage'
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
if Capistrano::Configuration.instance
|
21
|
+
RezzzaCapistranoTools.load_into(Capistrano::Configuration.instance)
|
22
|
+
end
|
data/lib/vaultage.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
set :vaultage, false
|
2
|
+
set :vaultage_bin, "vaultage"
|
3
|
+
|
4
|
+
before "deploy:update" do
|
5
|
+
if vaultage
|
6
|
+
vaultage.decrypt
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
namespace :vaultage do
|
11
|
+
task :decrypt do
|
12
|
+
filesToDecrypt = [];
|
13
|
+
|
14
|
+
for files in vaultage_files
|
15
|
+
files.push(`openssl rand -base64 10`.strip);
|
16
|
+
tmpName = "/tmp/"+application+"_parameters_"+files[2]+".yml.gpg"
|
17
|
+
top.download(latest_release+files[0], tmpName)
|
18
|
+
filesToDecrypt.push(tmpName)
|
19
|
+
end
|
20
|
+
|
21
|
+
system "vaultage decrypt --write --files="+filesToDecrypt.join(',')
|
22
|
+
|
23
|
+
for files in vaultage_files
|
24
|
+
top.upload("/tmp/"+application+"_parameters_"+files[2]+".yml", latest_release+files[1])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rezzza_capistrano_tools
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 1
|
8
|
+
- 0
|
9
|
+
- dev
|
10
|
+
version: 0.1.0.dev
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- "Les \xC3\xA9cureuils de Jean-Marc"
|
14
|
+
- RezZza
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2013-09-03 00:00:00 +02:00
|
20
|
+
default_executable:
|
21
|
+
dependencies: []
|
22
|
+
|
23
|
+
description: |
|
24
|
+
- Vaultage integration
|
25
|
+
- Diffs between local and remote
|
26
|
+
|
27
|
+
email:
|
28
|
+
- py.stephane1@gmail.com
|
29
|
+
executables: []
|
30
|
+
|
31
|
+
extensions: []
|
32
|
+
|
33
|
+
extra_rdoc_files: []
|
34
|
+
|
35
|
+
files:
|
36
|
+
- lib/rezzza_capistrano_tools.rb
|
37
|
+
- lib/vaultage.rb
|
38
|
+
- README.md
|
39
|
+
- LICENSE
|
40
|
+
has_rdoc: true
|
41
|
+
homepage: http://verylastroom.com
|
42
|
+
licenses: []
|
43
|
+
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
segments:
|
54
|
+
- 0
|
55
|
+
version: "0"
|
56
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
segments:
|
61
|
+
- 1
|
62
|
+
- 3
|
63
|
+
- 1
|
64
|
+
version: 1.3.1
|
65
|
+
requirements: []
|
66
|
+
|
67
|
+
rubyforge_project: rezzza_capistrano_tools
|
68
|
+
rubygems_version: 1.3.6
|
69
|
+
signing_key:
|
70
|
+
specification_version: 3
|
71
|
+
summary: Some tools for capistrano.
|
72
|
+
test_files: []
|
73
|
+
|