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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe6d7d2254e5d9eb31f8a8a00b74c418574c5281
4
- data.tar.gz: 82bb000982c583127e1e5e389e1c673045001c80
3
+ metadata.gz: af8b7e1e521f93de07775a72dc52cc31bb10bed1
4
+ data.tar.gz: 4470602ae1b7d1612c6ef3c28fa567139a877a00
5
5
  SHA512:
6
- metadata.gz: 10fccdae72f0b4d2e6a52fd074078a0d068f0e574759ccd22c97b19ab0dfdf03b727d95d2c750c57d866219fafa5ebba446b09943a34a3f9faef1e1cf370ed1c
7
- data.tar.gz: 0992b9f3aa18fe2a144ae5c30e20c20f0837153f342d48a53db486625670850dcbb2d612e5cded689eac210640caa6aa99dff798bce7e68a6a5af0f8e012297f
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
@@ -1,3 +1,3 @@
1
1
  module YaQueen
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/ya_queen.rb CHANGED
@@ -2,7 +2,8 @@ require "ya_queen/version"
2
2
 
3
3
  module YaQueen
4
4
  autoload :Config, "ya_queen/config"
5
- autoload :Base, "ya_queen/base"
5
+ autoload :Base , "ya_queen/base"
6
+ autoload :Custom, "ya_queen/custom"
6
7
 
7
8
  class << self
8
9
  def configure(context, path)
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.5
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-21 00:00:00.000000000 Z
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