gofer 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Revision History
2
+ ### v0.2.4 24/05/2011
2
3
 
4
+ * Add `:quiet` as an option on `Gofer::Host` instantiation
5
+
3
6
  ### v0.2.3 21/05/2011
4
7
 
5
8
  * Add `write` command to `Gofer::Host`
data/lib/gofer/host.rb CHANGED
@@ -14,17 +14,21 @@ module Gofer
14
14
 
15
15
  # Create a new Host connection
16
16
  #
17
- # +opts+ is passed through directly to Net::SSH.start
17
+ # Options:
18
+ #
19
+ # +quiet+:: Don't print stdout output from +run+ commands
20
+ # All other+opts+ is passed through directly to Net::SSH.start
18
21
  # See http://net-ssh.github.com/ssh/v2/api/index.html for valid arguments.
19
22
  def initialize _hostname, username, opts={}
20
23
  @hostname = _hostname
21
- @quiet = false
22
24
 
23
25
  # support legacy positional argument use
24
26
  if opts.is_a? String
25
27
  opts = { :keys => [opts]}
26
28
  end
27
29
 
30
+ @quiet = opts.delete(:quiet)
31
+
28
32
  # support legacy identity_file argument
29
33
  if opts[:identity_file]
30
34
  opts[:keys] = [opts.delete(:identity_file)]
data/lib/gofer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gofer # :nodoc:
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -30,8 +30,7 @@ describe Gofer do
30
30
  end
31
31
 
32
32
  before :all do
33
- @host = Gofer::Host.new(HOSTNAME, USERNAME, :keys => [IDENTITY_FILE])
34
- @host.quiet = true
33
+ @host = Gofer::Host.new(HOSTNAME, USERNAME, :keys => [IDENTITY_FILE], :quiet => true)
35
34
  @tmpdir = raw_ssh("mktemp -d /tmp/gofertest.XXXXX").chomp
36
35
  end
37
36
 
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gofer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 2
9
- - 3
10
- version: 0.2.3
4
+ prerelease:
5
+ version: 0.2.4
11
6
  platform: ruby
12
7
  authors:
13
8
  - Michael Pearson
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-21 00:00:00 +10:00
13
+ date: 2011-05-24 00:00:00 +10:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 33
30
- segments:
31
- - 2
32
- - 0
33
- - 23
34
24
  version: 2.0.23
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,19 +32,12 @@ dependencies:
42
32
  requirements:
43
33
  - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 31
46
- segments:
47
- - 1
48
- - 0
49
- - 4
50
35
  version: 1.0.4
51
36
  type: :runtime
52
37
  version_requirements: *id002
53
- description: |
54
-
55
- Gofer provides a flexible and reliable model for performing tasks on remote
56
- server using Net::SSH
57
-
38
+ description: "\n\
39
+ Gofer provides a flexible and reliable model for performing tasks on remote\n\
40
+ server using Net::SSH\n"
58
41
  email:
59
42
  - mipearson@gmail.com
60
43
  executables: []
@@ -91,23 +74,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
74
  requirements:
92
75
  - - ">="
93
76
  - !ruby/object:Gem::Version
94
- hash: 3
95
- segments:
96
- - 0
97
77
  version: "0"
98
78
  required_rubygems_version: !ruby/object:Gem::Requirement
99
79
  none: false
100
80
  requirements:
101
81
  - - ">="
102
82
  - !ruby/object:Gem::Version
103
- hash: 3
104
- segments:
105
- - 0
106
83
  version: "0"
107
84
  requirements: []
108
85
 
109
86
  rubyforge_project:
110
- rubygems_version: 1.3.7
87
+ rubygems_version: 1.6.2
111
88
  signing_key:
112
89
  specification_version: 3
113
90
  summary: run commands on remote servers using SSH