thor-ssh 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,6 +41,11 @@ module ThorSsh
41
41
  raise "inside is not implemented in thor-ssh, please use full paths"
42
42
  end
43
43
 
44
+ # Similar to run, but silent and always executes on the remote server
45
+ def exec(command)
46
+ return destination_server.run(command)
47
+ end
48
+
44
49
  def run(command, config={})
45
50
  return unless behavior == :invoke
46
51
 
@@ -56,7 +61,7 @@ module ThorSsh
56
61
 
57
62
  unless options[:pretend]
58
63
  # config[:capture] ? `#{command}` : system("#{command}")
59
- return destination_server.run(command)
64
+ return exec(command)
60
65
  end
61
66
  end
62
67
 
@@ -1,3 +1,3 @@
1
1
  module ThorSsh
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thor-ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-19 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: -3815866701832875741
173
+ hash: -1305954903121655553
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  none: false
176
176
  requirements:
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: -3815866701832875741
182
+ hash: -1305954903121655553
183
183
  requirements: []
184
184
  rubyforge_project:
185
185
  rubygems_version: 1.8.22