remote_executor 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.
@@ -6,7 +6,6 @@ A simplistic remote command launcher over SSH conections
6
6
 
7
7
  The latest stable version is published in rubygems.
8
8
 
9
- gem source --add http://rubygems.org
10
9
  gem install remote_executor
11
10
 
12
11
  == Notes
@@ -15,13 +14,16 @@ At the moment the gem have a strong dependency of your local SSH configuration,
15
14
  a very simple mechanism for keep safe your private data, but this need a ugly configuration with a fake user name in the connection
16
15
  process. I provide a basic SSH config if your aren´t familiar with this configuration stuff
17
16
 
18
- === How to use
17
+ == Options
18
+ * config = Valid YAML configuration file
19
+ * log = File for the log
20
+ * commands = A list of commands separated by ';'
21
+ * threaded = [true, false]: Execute the command in batch mode (false) or in parallel (true) in a server of a system
22
+
23
+ === Configuration file example
19
24
 
20
- An example may be the next. Launch the command 'hostname' over your production farm system named 'myFarm' configured in your home
21
- directory into the file ${HOME}/.remoteexecutorrc like this:
22
-
23
25
  ---
24
- - :name: 'myFarm'
26
+ - :name: 'myFarm1'
25
27
  :environment: 'development'
26
28
  :user: 'admin'
27
29
  :hosts:
@@ -29,7 +31,7 @@ directory into the file ${HOME}/.remoteexecutorrc like this:
29
31
  - 'myHost2'
30
32
  - 'myHost3'
31
33
  - 'myHost4'
32
- - :name: 'myFarm'
34
+ - :name: 'myFarm2'
33
35
  :environment: 'production'
34
36
  :user: 'admin'
35
37
  :hosts:
@@ -57,12 +59,15 @@ you need this minimal SSH configuration (${HOME}/.ssh/config) for the example
57
59
 
58
60
  with this line:
59
61
 
60
- remote_executor --system=myFarmID --command='hostname'
62
+ remote_executor --config=MyFarmsConfigurationFile.yml \
63
+ --threaded=true \
64
+ --log=/tmp/MyFarmResults.log \
65
+ --system=myFarm1 \
66
+ --commands='hostname;cat /etc/hosts;grep foo /etc/passwd'
61
67
 
62
68
 
63
69
  == TODO
64
70
 
65
- * Document all this stuff in english... I promise
66
71
  * Take decisions about user by hosts or user by farm
67
72
  * Pullrequests are welcome... of course
68
73
 
@@ -3,7 +3,7 @@ module RemoteExecutor
3
3
  INFO = {
4
4
  :major =>0,
5
5
  :minor =>9,
6
- :patch =>0
6
+ :patch =>1
7
7
  }
8
8
 
9
9
  NAME = 'remote_executor'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: remote_executor
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.0
5
+ version: 0.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Javier Juarez