producer-core 0.2.12 → 0.2.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/producer/core/recipe/dsl.rb +6 -0
- data/lib/producer/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e03f3130563d228e058023198926b0165c4a952e
|
4
|
+
data.tar.gz: fd6354e893c19bb0f26e92036df3f5fc55ca83d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b74ec3d925307da7ca311dcd4ad23e7db4e77f129f5fe12e320c6556dc1a57c0e390911748cd24d4cb6c7186e565fcf916e30265173ac74e31d2012114e14a81
|
7
|
+
data.tar.gz: 665c0ce5f5a207f51d679a3fff33b4646fa752cec32c7a75d565627fbb15834b5f9f79d43b6d70f1bc4b0c383c8c0827409d0ec2af833ef1b83c6c11f1b65bce
|
@@ -2,6 +2,12 @@ module Producer
|
|
2
2
|
module Core
|
3
3
|
class Recipe
|
4
4
|
class DSL
|
5
|
+
class << self
|
6
|
+
def define_macro(name, block)
|
7
|
+
define_method(name) { |*args| task name, *args, &block }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
5
11
|
attr_reader :env, :code, :block, :tasks
|
6
12
|
|
7
13
|
def initialize(env, code = nil, &block)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: producer-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thibault Jouan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|