rye 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.
- data/CHANGES.txt +3 -0
- data/README.rdoc +2 -7
- data/Rakefile +1 -0
- data/lib/rye.rb +1 -1
- data/lib/rye/box.rb +1 -1
- data/lib/rye/set.rb +1 -1
- data/rye.gemspec +1 -1
- metadata +4 -4
data/CHANGES.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= Rye - v0.
|
1
|
+
= Rye - v0.9
|
2
2
|
|
3
3
|
<b>Safely run SSH commands on a bunch of machines at the same time (from Ruby)</b>.
|
4
4
|
|
@@ -134,7 +134,7 @@ The first argument must be the command name and the remaining arguments are sent
|
|
134
134
|
The return value is a Rye::Rap object (just like with Rye::Box) so you have access to the exit code and STDERR output:
|
135
135
|
|
136
136
|
ret = Rye.shell :ls, 'nofile'
|
137
|
-
ret.exit_status
|
137
|
+
ret.exit_status # => 1
|
138
138
|
ret.stderr # => "sh: nofile: No such file or directory"
|
139
139
|
ret.class # => Rye::Rap
|
140
140
|
|
@@ -159,7 +159,6 @@ Rye permits only a limited number of system commands to be run. This default whi
|
|
159
159
|
|
160
160
|
== Dependencies
|
161
161
|
|
162
|
-
* OpenSSH[http://www.openssh.com/]
|
163
162
|
* OpenSSL[http://www.openssl.org] (The C library)
|
164
163
|
* Ruby Gems:
|
165
164
|
* net-ssh
|
@@ -175,19 +174,15 @@ Rye permits only a limited number of system commands to be run. This default whi
|
|
175
174
|
Via Rubygems, one of:
|
176
175
|
|
177
176
|
$ gem install rye
|
178
|
-
$ gem install delano-rye --source http://gems.github.com/
|
179
177
|
|
180
178
|
or via download:
|
181
179
|
|
182
180
|
* rye-latest.tar.gz[http://github.com/delano/rye/tarball/latest]
|
183
181
|
* rye-latest.zip[http://github.com/delano/rye/zipball/latest]
|
184
182
|
|
185
|
-
|
186
|
-
|
187
183
|
== Known Issues
|
188
184
|
|
189
185
|
* Rye doesn't read the ~/.ssh/config file yet
|
190
|
-
* Rye uses OpenSSH's ssh-agent (if it exists). Rye starts it up as a child process and shuts it down using at_exit. If you have code in an at_exit that rely's on Rye, make sure your code runs before Rye's at_exit block is called. For example, Drydock uses at_exit too which is why in bin/rye you can see that Drydock is called explicitly so that Rye's at_exit is executed after Drydock executes a command.
|
191
186
|
* No support for STDIN for commands.
|
192
187
|
* Limited support for interactive shells.
|
193
188
|
|
data/Rakefile
CHANGED
@@ -42,6 +42,7 @@ Rake::GemPackageTask.new(@spec) do |p|
|
|
42
42
|
p.need_tar = true if RUBY_PLATFORM !~ /mswin/
|
43
43
|
end
|
44
44
|
|
45
|
+
task :build => [ :release ]
|
45
46
|
task :release => [ :rdoc, :package ]
|
46
47
|
task :install => [ :rdoc, :package ] do
|
47
48
|
sh %{sudo gem install pkg/#{name}-#{version}.gem}
|
data/lib/rye.rb
CHANGED
data/lib/rye/box.rb
CHANGED
@@ -278,7 +278,7 @@ module Rye
|
|
278
278
|
end
|
279
279
|
additional_keys = [additional_keys].flatten.compact || []
|
280
280
|
return if additional_keys.empty?
|
281
|
-
ret = Rye.add_keys(additional_keys)
|
281
|
+
#ret = Rye.add_keys(additional_keys)
|
282
282
|
#if ret.is_a?(Rye::Rap)
|
283
283
|
# debug "ssh-add exit_status: #{ret.exit_status}"
|
284
284
|
# debug "ssh-add stdout: #{ret.stdout}"
|
data/lib/rye/set.rb
CHANGED
data/rye.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "rye"
|
3
3
|
s.rubyforge_project = "rye"
|
4
|
-
s.version = "0.9.
|
4
|
+
s.version = "0.9.1"
|
5
5
|
s.summary = "Rye: Safely run SSH commands on a bunch of machines at the same time (from Ruby)."
|
6
6
|
s.description = s.summary
|
7
7
|
s.author = "Delano Mandelbaum"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rye
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 57
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 1
|
10
|
+
version: 0.9.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Delano Mandelbaum
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-10-18 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|