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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 993830c5ed30225fe7333275a8eb33f39b000448
4
- data.tar.gz: 74554e80ba1c4bfd0d1b7f23421e8fec68197693
3
+ metadata.gz: e03f3130563d228e058023198926b0165c4a952e
4
+ data.tar.gz: fd6354e893c19bb0f26e92036df3f5fc55ca83d8
5
5
  SHA512:
6
- metadata.gz: 133378dc481c5f5bbdd899d37aa4519a2e5f4dfcb3b771b44254bed19bbb8275940d192bef19705e2187b30d9dfe9a5ee9fabd1d0ce91c516c3fd27dd1346c1d
7
- data.tar.gz: 41ee1449668ed09cad36e08274ee81ddd318f29d2b3e0dfc884ce5b7f7cf54c955525200afdc09a4945fcf812ba1fc3ed5c62c3dc108bec09f8f8f34c4715111
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)
@@ -1,5 +1,5 @@
1
1
  module Producer
2
2
  module Core
3
- VERSION = '0.2.12'.freeze
3
+ VERSION = '0.2.13'.freeze
4
4
  end
5
5
  end
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.12
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-17 00:00:00.000000000 Z
11
+ date: 2014-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh