pdo 0.0.1 → 0.0.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.
- checksums.yaml +8 -8
- data/README.md +19 -13
- data/lib/pdo/version.rb +1 -1
- data/pdo.gemspec +7 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZGRhYjNlMDBhZWRlMWEzNWRhZWM1OGYwZDQwZjQ4ODVlZjc2NTY0Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGU5YWQxOGI4NmYwNDgxZmUwMmJhYTdiMTdhNTQyNmRiYThlYmRkNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWRmMjczMzIyN2M4ZGYxN2ZjNDg4NjgzYjVkYzIwMTBkZGQ5ZWM2MTk4Zjdk
|
10
|
+
MWM2ZWU1MGI0ZmI0NWZiYmQ5OGVkNjUyNDVhMjM4YzBkYmVhM2JlYjA2NTNk
|
11
|
+
N2NiMTE2MGM1YTk5MzQ4ZDI3OTdiODQ5ZjNhNGIzYTI1YThhNGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDhiOTU5N2U4NTZkY2VjNzNmYmZjNzU3Y2ZhYzA0ZmY1NzRkZDI2ZTVmNzQ4
|
14
|
+
ZDExMTI5YzRiNzk4MThmYmUxNzUxMGFlZmNhMDgyOTBjYjAzOTNiMjNmMzRl
|
15
|
+
YzM3NTdmMmU0ODU0YjM3NjBkNDU4MTNiMjgwZjI4NGQwNGZkYWQ=
|
data/README.md
CHANGED
@@ -22,23 +22,28 @@ Or install it yourself as:
|
|
22
22
|
The following usage examples assume the host definition file in the
|
23
23
|
example/ directory is used.
|
24
24
|
|
25
|
-
|
26
|
-
$ pdo -g /
|
27
|
-
$ pdo -g dc0/perf
|
25
|
+
### to list the hosts or groups
|
28
26
|
|
29
|
-
|
30
|
-
$ pdo -g
|
31
|
-
$ pdo -g dc0/perf --enum
|
27
|
+
$ pdo -g /
|
28
|
+
$ pdo -g dc0/perf
|
32
29
|
|
33
|
-
|
34
|
-
$ pdo -g dc0/func,dc0/perf --count
|
35
|
-
$ pdo -g lab0/empty --count
|
30
|
+
### to enumerate hosts in groups
|
36
31
|
|
37
|
-
|
38
|
-
$ pdo -g
|
32
|
+
$ pdo -g lab0 --enum
|
33
|
+
$ pdo -g dc0/perf --enum
|
39
34
|
|
40
|
-
|
41
|
-
|
35
|
+
### to count # of hosts in groups
|
36
|
+
|
37
|
+
$ pdo -g dc0/func,dc0/perf --count
|
38
|
+
$ pdo -g lab0/empty --count
|
39
|
+
|
40
|
+
### to run 'ls -l' on some hosts
|
41
|
+
|
42
|
+
$ pdo -g env0 -c 'ls -l' -t 3 -y
|
43
|
+
|
44
|
+
### to rsync some file to some hosts
|
45
|
+
|
46
|
+
$ pdo -g lab0/dc1/util -c "rsync -avc example.txt _HOST_:/var/tmp/" -l -t 5
|
42
47
|
|
43
48
|
|
44
49
|
## Contributing
|
@@ -48,3 +53,4 @@ $ pdo -g lab0/dc1/util -c "rsync -avc example.txt _HOST_:/var/tmp/" -l -t 5
|
|
48
53
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
49
54
|
4. Push to the branch (`git push origin my-new-feature`)
|
50
55
|
5. Create new Pull Request
|
56
|
+
|
data/lib/pdo/version.rb
CHANGED
data/pdo.gemspec
CHANGED
@@ -4,22 +4,23 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'pdo/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name =
|
8
|
-
gem.
|
7
|
+
gem.name = 'pdo'
|
8
|
+
gem.license = 'MIT'
|
9
9
|
gem.version = Pdo::VERSION
|
10
|
-
gem.authors = [
|
11
|
-
gem.email = [
|
10
|
+
gem.authors = ['bqbn']
|
11
|
+
gem.email = ['bqbn@openken.com']
|
12
12
|
gem.description = 'pdo is a wrapper for running commands on or '\
|
13
13
|
'against multiple hosts at the same time.'
|
14
14
|
gem.summary = 'pdo is a wrapper for running commands on or '\
|
15
15
|
'against multiple hosts at the same time.'
|
16
|
-
gem.homepage =
|
16
|
+
gem.homepage = 'https://github.com/bqbn/pdo'
|
17
17
|
|
18
18
|
gem.files = `git ls-files`.split($/)
|
19
19
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
20
20
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
21
|
-
gem.require_paths = [
|
21
|
+
gem.require_paths = ['lib']
|
22
22
|
|
23
|
+
gem.required_ruby_version = '>= 1.9.3'
|
23
24
|
gem.add_dependency('log4r', '> 1.1.9')
|
24
25
|
end
|
25
26
|
# vim: set et ts=2 sts=2 sw=2 si sta :
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bqbn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: log4r
|
@@ -60,7 +60,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
requirements:
|
61
61
|
- - ! '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
63
|
+
version: 1.9.3
|
64
64
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ! '>='
|