gofer 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # Revision History
2
+ ### v0.2.5 02/06/2011
3
+
4
+ * `#exists?` -> `#exist?` to be consistent with `File.exist?`
5
+
2
6
  ### v0.2.4 24/05/2011
3
7
 
4
8
  * Add `:quiet` as an option on `Gofer::Host` instantiation
data/README.md CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
  ### Interact with the filesystem
29
29
 
30
- if h.exists?('remote_directory')
30
+ if h.exist?('remote_directory')
31
31
  h.run "rm -rf 'remote_directory'"
32
32
  end
33
33
 
data/lib/gofer/host.rb CHANGED
@@ -87,7 +87,7 @@ module Gofer
87
87
  end
88
88
 
89
89
  # Return +true+ if +path+ exits.
90
- def exists? path
90
+ def exist? path
91
91
  @ssh.run("sh -c '[ -e #{path} ]'").exit_status == 0
92
92
  end
93
93
 
data/lib/gofer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Gofer # :nodoc:
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -109,14 +109,14 @@ describe Gofer do
109
109
  end
110
110
  end
111
111
 
112
- describe :exists? do
112
+ describe :exist? do
113
113
  it "should return true if a path or file exists" do
114
114
  raw_ssh "touch #{in_tmpdir 'exists'}"
115
- @host.exists?(in_tmpdir 'exists').should be true
115
+ @host.exist?(in_tmpdir 'exists').should be true
116
116
  end
117
117
 
118
118
  it "should return false if a path does not exist" do
119
- @host.exists?(in_tmpdir 'doesnotexist').should be false
119
+ @host.exist?(in_tmpdir 'doesnotexist').should be false
120
120
  end
121
121
  end
122
122
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gofer
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.4
5
+ version: 0.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Michael Pearson
@@ -10,8 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-24 00:00:00 +10:00
14
- default_executable:
13
+ date: 2011-06-02 00:00:00 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: net-ssh
@@ -60,7 +59,6 @@ files:
60
59
  - lib/gofer/version.rb
61
60
  - spec/gofer/integration_spec.rb
62
61
  - spec/spec_helper.rb
63
- has_rdoc: true
64
62
  homepage: https://github.com/mipearson/gofer
65
63
  licenses: []
66
64
 
@@ -84,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
82
  requirements: []
85
83
 
86
84
  rubyforge_project:
87
- rubygems_version: 1.6.2
85
+ rubygems_version: 1.8.3
88
86
  signing_key:
89
87
  specification_version: 3
90
88
  summary: run commands on remote servers using SSH