ya_queen 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ya_queen/custom.rb +27 -0
- data/lib/ya_queen/version.rb +1 -1
- data/lib/ya_queen.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8b7e1e521f93de07775a72dc52cc31bb10bed1
|
4
|
+
data.tar.gz: 4470602ae1b7d1612c6ef3c28fa567139a877a00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2896a025b07b7b024a59eca7e9476c77f5012d20463664e1b018513e4f5b98142c2a62f5b3c4566141b4e905b90ca3f7f2fc299dfb7a19236a32bd6803466e3
|
7
|
+
data.tar.gz: 8b3399da1ef353f1c7dae0576e09b68dac09e31b2f379133b37bf67062796955382811b8227ea89090d62543e4c9e6c0df9fde29cb591ab10810faf9b2d9bd6a
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'ya_queen'
|
3
|
+
|
4
|
+
module YaQueen
|
5
|
+
class Custom < Base
|
6
|
+
def implement_common_task
|
7
|
+
skip_keys = %w[roles deploy_to]
|
8
|
+
config.each do |key, value|
|
9
|
+
next if key == "roles"
|
10
|
+
if value
|
11
|
+
set key.to_sym, value
|
12
|
+
end
|
13
|
+
end
|
14
|
+
set :deploy_to, fetch(:override_deploy_to, config['deploy_to'])
|
15
|
+
|
16
|
+
super
|
17
|
+
end
|
18
|
+
|
19
|
+
def implement_each_task(host, options)
|
20
|
+
config['roles'].each do |r|
|
21
|
+
role r.to_sym, host
|
22
|
+
end
|
23
|
+
super
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
data/lib/ya_queen/version.rb
CHANGED
data/lib/ya_queen.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ya_queen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -69,6 +69,7 @@ files:
|
|
69
69
|
- lib/ya_queen.rb
|
70
70
|
- lib/ya_queen/base.rb
|
71
71
|
- lib/ya_queen/config.rb
|
72
|
+
- lib/ya_queen/custom.rb
|
72
73
|
- lib/ya_queen/version.rb
|
73
74
|
- spec/spec_helper.rb
|
74
75
|
- spec/test01.yml
|