automate-it 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/automate-it.gemspec +1 -1
- data/lib/automateit/template_manager/base.rb +4 -10
- data/lib/inactive_support/duration.rb +1 -1
- metadata +16 -20
- checksums.yaml +0 -7
data/automate-it.gemspec
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# == TemplateManager::BaseDriver
|
2
|
-
|
2
|
+
|
3
|
+
require 'ostruct'
|
4
|
+
|
3
5
|
# Base class for all TemplateManager drivers.
|
4
6
|
class AutomateIt::TemplateManager::BaseDriver < AutomateIt::Plugin::Driver
|
5
7
|
# Name of default algorithm for performing checks, e.g., :compare
|
@@ -133,15 +135,7 @@ protected
|
|
133
135
|
if opts[:locals]
|
134
136
|
# Create a binding that the template can get variables from without
|
135
137
|
# polluting the Driver's namespace.
|
136
|
-
|
137
|
-
code = ""
|
138
|
-
for key in opts[:locals].keys
|
139
|
-
code << "#{key} = opts[:locals][:#{key}]\n"
|
140
|
-
end
|
141
|
-
eval code
|
142
|
-
binding
|
143
|
-
}
|
144
|
-
binder = callback.call
|
138
|
+
binder = OpenStruct.new(opts[:locals]).instance_eval { binding }
|
145
139
|
end
|
146
140
|
|
147
141
|
block_opts = {
|
@@ -4,7 +4,7 @@ module InactiveSupport
|
|
4
4
|
# such as in this example:
|
5
5
|
#
|
6
6
|
# 1.month.ago # equivalent to Time.now.advance(:months => -1)
|
7
|
-
class Duration <
|
7
|
+
class Duration < ::BasicObject
|
8
8
|
attr_accessor :value, :parts
|
9
9
|
|
10
10
|
def initialize(value, parts) #:nodoc:
|
metadata
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: automate-it
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Igal Koshevoy
|
@@ -13,32 +14,26 @@ date: 2013-05-16 00:00:00.000000000 Z
|
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: hoe
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirement: &12473380 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
17
19
|
requirements:
|
18
|
-
- - '>='
|
20
|
+
- - ! '>='
|
19
21
|
- !ruby/object:Gem::Version
|
20
22
|
version: '0'
|
21
23
|
type: :runtime
|
22
24
|
prerelease: false
|
23
|
-
version_requirements:
|
24
|
-
requirements:
|
25
|
-
- - '>='
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
version: '0'
|
25
|
+
version_requirements: *12473380
|
28
26
|
- !ruby/object:Gem::Dependency
|
29
27
|
name: open4
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
28
|
+
requirement: &12472920 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
31
30
|
requirements:
|
32
|
-
- - '>='
|
31
|
+
- - ! '>='
|
33
32
|
- !ruby/object:Gem::Version
|
34
33
|
version: '0'
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
|
-
version_requirements:
|
38
|
-
requirements:
|
39
|
-
- - '>='
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '0'
|
36
|
+
version_requirements: *12472920
|
42
37
|
description: AutomateIt is an open source tool for automating the setup and maintenance
|
43
38
|
of servers, applications and their dependencies. This is updated fork.
|
44
39
|
email: fandisek@gmail.com
|
@@ -223,26 +218,27 @@ files:
|
|
223
218
|
homepage: http://rubygems.org/gems/automate-it
|
224
219
|
licenses:
|
225
220
|
- GNU-GPL
|
226
|
-
metadata: {}
|
227
221
|
post_install_message:
|
228
222
|
rdoc_options: []
|
229
223
|
require_paths:
|
230
224
|
- lib
|
231
225
|
required_ruby_version: !ruby/object:Gem::Requirement
|
226
|
+
none: false
|
232
227
|
requirements:
|
233
|
-
- - '>='
|
228
|
+
- - ! '>='
|
234
229
|
- !ruby/object:Gem::Version
|
235
230
|
version: '0'
|
236
231
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
|
+
none: false
|
237
233
|
requirements:
|
238
|
-
- - '>='
|
234
|
+
- - ! '>='
|
239
235
|
- !ruby/object:Gem::Version
|
240
236
|
version: '0'
|
241
237
|
requirements: []
|
242
238
|
rubyforge_project:
|
243
|
-
rubygems_version:
|
239
|
+
rubygems_version: 1.8.10
|
244
240
|
signing_key:
|
245
|
-
specification_version:
|
241
|
+
specification_version: 3
|
246
242
|
summary: Fork of AutomateIt
|
247
243
|
test_files:
|
248
244
|
- spec/breaker.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 9ad9f69f876ac9e7b93ef82c0bb3f7df8831534c
|
4
|
-
data.tar.gz: 4a0607cab8487834b9262d95cf669a04768b62e9
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 8fbd3c0cb819d605983c61b9e162a94e0fcefbc8bf89ae39d3d6abb99906404e03a702443a2c3677c0addb5c0091989bb96917c04b006017e1c1c0e2c676c454
|
7
|
-
data.tar.gz: aa16d8e13c6ed1a80cf4e1854614e5d3426be3f75f5f2e8ea8c993b9a0e3cc2a4a1729cda3880f83cf9a45430ad845ed4e2be9be6dd81badd8d602f1d8962f66
|