automate-it 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.txt +5 -0
- data/{README.txt → README.markdown} +23 -4
- data/automate-it.gemspec +2 -2
- data/lib/automate-it.rb +1 -0
- data/lib/automateit/cli.rb +3 -3
- data/lib/automateit/field_manager.rb +1 -1
- data/lib/tempster.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ad9f69f876ac9e7b93ef82c0bb3f7df8831534c
|
4
|
+
data.tar.gz: 4a0607cab8487834b9262d95cf669a04768b62e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fbd3c0cb819d605983c61b9e162a94e0fcefbc8bf89ae39d3d6abb99906404e03a702443a2c3677c0addb5c0091989bb96917c04b006017e1c1c0e2c676c454
|
7
|
+
data.tar.gz: aa16d8e13c6ed1a80cf4e1854614e5d3426be3f75f5f2e8ea8c993b9a0e3cc2a4a1729cda3880f83cf9a45430ad845ed4e2be9be6dd81badd8d602f1d8962f66
|
data/CHANGES.txt
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
|
1
|
+
Automate-It
|
2
|
+
===========
|
3
|
+
|
4
|
+
This is fork of [AutomateIt](https://github.com/automateit/automateit).
|
2
5
|
|
3
6
|
<em>AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies.</em>
|
4
7
|
|
@@ -6,14 +9,29 @@
|
|
6
9
|
2. Screenshots[http://AutomateIt.org/screenshots] -- quick tour of sample AutomateIt code
|
7
10
|
3. TUTORIAL.txt[link:files/TUTORIAL_txt.html] -- hands-on tutorial
|
8
11
|
|
9
|
-
|
12
|
+
|
13
|
+
Installation
|
14
|
+
------------
|
15
|
+
|
16
|
+
As rubygem
|
17
|
+
|
18
|
+
gem install automate-it
|
19
|
+
|
20
|
+
In Gemfile
|
21
|
+
|
22
|
+
gem 'automate-it', :require => 'automateit'
|
23
|
+
|
24
|
+
|
25
|
+
Frequently-used commands
|
26
|
+
------------------------
|
10
27
|
|
11
28
|
Execute these from a terminal, use <tt>--help</tt> option for help:
|
12
29
|
* +automateit+ or +ai+ -- Run a recipe or create a project.
|
13
30
|
* +aitag+ -- Query project's tags.
|
14
31
|
* +aifield+ -- Query project's fields.
|
15
32
|
|
16
|
-
|
33
|
+
Frequently-used classes
|
34
|
+
-----------------------
|
17
35
|
|
18
36
|
* AutomateIt::Interpreter -- Runs AutomateIt commands.
|
19
37
|
* AutomateIt::Project -- Collection of related recipes, tags, fields and custom plugins.
|
@@ -29,7 +47,8 @@ Execute these from a terminal, use <tt>--help</tt> option for help:
|
|
29
47
|
* AutomateIt::TagManager -- Groups hosts by role and queries membership.
|
30
48
|
* AutomateIt::TemplateManager -- Renders templates to files.
|
31
49
|
|
32
|
-
|
50
|
+
Legal
|
51
|
+
-----
|
33
52
|
|
34
53
|
Copyright (C) 2007-2008 Igal Koshevoy (igal@pragmaticraft.com)
|
35
54
|
|
data/automate-it.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "automate-it"
|
3
|
-
s.version = '0.9.
|
3
|
+
s.version = '0.9.1'
|
4
4
|
s.default_executable = "automateit"
|
5
5
|
s.license = 'GNU-GPL'
|
6
6
|
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.date = %q{2013-05-16}
|
10
10
|
s.description = %q{AutomateIt is an open source tool for automating the setup and maintenance of servers, applications and their dependencies. This is updated fork.}
|
11
11
|
s.email = %q{fandisek@gmail.com}
|
12
|
-
s.homepage = %q{http://rubygems.org/gems/
|
12
|
+
s.homepage = %q{http://rubygems.org/gems/automate-it}
|
13
13
|
s.rubygems_version = %q{1.6.2}
|
14
14
|
s.summary = %q{Fork of AutomateIt}
|
15
15
|
s.bindir = 'bin'
|
data/lib/automate-it.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'automateit'
|
data/lib/automateit/cli.rb
CHANGED
@@ -8,7 +8,7 @@ module AutomateIt
|
|
8
8
|
class CLI < Common
|
9
9
|
# Create a new CLI interpreter. If no :recipe or :eval option is provided,
|
10
10
|
# it starts an interactive IRB session for the Interpreter.
|
11
|
-
#
|
11
|
+
#
|
12
12
|
# Examples:
|
13
13
|
# AutomateIt::CLI.run("myrecipe.rb")
|
14
14
|
# AutomateIt::CLI.run(:recipe => "myrecipe.rb")
|
@@ -50,7 +50,7 @@ module AutomateIt
|
|
50
50
|
opts[:irb] = irb
|
51
51
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
52
52
|
interpreter = AutomateIt.new(opts)
|
53
|
-
irb.context.workspace.instance_variable_set(:@binding, interpreter.
|
53
|
+
irb.context.workspace.instance_variable_set(:@binding, interpreter.instance_eval { binding() })
|
54
54
|
|
55
55
|
# Tab completion
|
56
56
|
message = "<CTRL-D> to quit"
|
@@ -71,7 +71,7 @@ module AutomateIt
|
|
71
71
|
irb.context.prompt_s = "ai%l "
|
72
72
|
irb.context.prompt_c = "ai* "
|
73
73
|
begin
|
74
|
-
irb.context.prompt_n = "ai%i "
|
74
|
+
irb.context.prompt_n = "ai%i "
|
75
75
|
rescue NoMethodError
|
76
76
|
# Not available on Ruby 1.8.2 bundled with Mac OS X 10.4 Tiger
|
77
77
|
end
|
@@ -88,7 +88,7 @@ class AutomateIt::FieldManager::YAML < AutomateIt::FieldManager::Struct
|
|
88
88
|
def setup(opts={})
|
89
89
|
if filename = opts.delete(:file)
|
90
90
|
contents = _read(filename)
|
91
|
-
binder = interpreter.
|
91
|
+
binder = interpreter.instance_eval { binding() }
|
92
92
|
output = HelpfulERB.new(contents, filename).result(binder)
|
93
93
|
|
94
94
|
opts[:struct] = ::YAML::load(output)
|
data/lib/tempster.rb
CHANGED
@@ -144,7 +144,7 @@ class Tempster
|
|
144
144
|
|
145
145
|
# Returns a string of random characters.
|
146
146
|
def self._armor_string(length=DEFAULT_ARMOR_LENGTH)
|
147
|
-
(
|
147
|
+
(0...length).map{ ARMOR_CHARACTERS[rand(ARMOR_CHARACTERS.size)] }.join
|
148
148
|
end
|
149
149
|
|
150
150
|
# Creates a temporary file.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igal Koshevoy
|
@@ -58,7 +58,7 @@ files:
|
|
58
58
|
- CHANGES.txt
|
59
59
|
- Hoe.rake
|
60
60
|
- Manifest.txt
|
61
|
-
- README.
|
61
|
+
- README.markdown
|
62
62
|
- Rakefile
|
63
63
|
- TESTING.txt
|
64
64
|
- TODO.txt
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- gpl.txt
|
86
86
|
- helpers/cpan_wrapper.pl
|
87
87
|
- helpers/which.cmd
|
88
|
+
- lib/automate-it.rb
|
88
89
|
- lib/automateit.rb
|
89
90
|
- lib/automateit/account_manager.rb
|
90
91
|
- lib/automateit/account_manager/base.rb
|
@@ -219,7 +220,7 @@ files:
|
|
219
220
|
- spec/unit/shell_escape_spec.rb
|
220
221
|
- spec/unit/tag_manager_spec.rb
|
221
222
|
- spec/unit/template_manager_erb_spec.rb
|
222
|
-
homepage: http://rubygems.org/gems/
|
223
|
+
homepage: http://rubygems.org/gems/automate-it
|
223
224
|
licenses:
|
224
225
|
- GNU-GPL
|
225
226
|
metadata: {}
|