automate-it 0.9.0 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d3c3fab11b7c4bf2b4bf8762f297003fb2a89b0
4
- data.tar.gz: a46714c271aecc9befcfbef839bf6bc31658a57a
3
+ metadata.gz: 9ad9f69f876ac9e7b93ef82c0bb3f7df8831534c
4
+ data.tar.gz: 4a0607cab8487834b9262d95cf669a04768b62e9
5
5
  SHA512:
6
- metadata.gz: 37a1783b58e98a3fa2212cdbeae37742f1967ddcfe5c44f88bac3b87e4663beb2203ba3d5ba0302c77e20fc16207ae9f13d2eda1e3597efbbaedf1c8de738163
7
- data.tar.gz: e49fe5e2b81666f79320c0e4143d095c9a524db1f1c392b2308b52961cb71c50efc70849693668357fb209ed01fada3e065966fc34d9a0d9442fff936aa056ce
6
+ metadata.gz: 8fbd3c0cb819d605983c61b9e162a94e0fcefbc8bf89ae39d3d6abb99906404e03a702443a2c3677c0addb5c0091989bb96917c04b006017e1c1c0e2c676c454
7
+ data.tar.gz: aa16d8e13c6ed1a80cf4e1854614e5d3426be3f75f5f2e8ea8c993b9a0e3cc2a4a1729cda3880f83cf9a45430ad845ed4e2be9be6dd81badd8d602f1d8962f66
@@ -1,3 +1,8 @@
1
+ 0.9.1
2
+ Date: 17 Jun 2013
3
+ Desc:
4
+ - Fixed random string generation in Tempster.
5
+
1
6
  0.9.0
2
7
  Date: 16 May 2013
3
8
  Desc:
@@ -1,4 +1,7 @@
1
- == AutomateIt
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
- === Frequently-used commands
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
- === Frequently-used classes
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
- === Legal
50
+ Legal
51
+ -----
33
52
 
34
53
  Copyright (C) 2007-2008 Igal Koshevoy (igal@pragmaticraft.com)
35
54
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "automate-it"
3
- s.version = '0.9.0'
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/better-automateit}
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'
@@ -0,0 +1 @@
1
+ require 'automateit'
@@ -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.send(:binding))
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.send(:binding)
91
+ binder = interpreter.instance_eval { binding() }
92
92
  output = HelpfulERB.new(contents, filename).result(binder)
93
93
 
94
94
  opts[:struct] = ::YAML::load(output)
@@ -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
- (1..length).collect{ARMOR_CHARACTERS[rand(ARMOR_CHARACTERS.size)]}.pack("C*")
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.0
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.txt
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/better-automateit
223
+ homepage: http://rubygems.org/gems/automate-it
223
224
  licenses:
224
225
  - GNU-GPL
225
226
  metadata: {}