thor-ssh 0.0.9 → 0.1.0
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/lib/thor-ssh/actions.rb +6 -1
- data/lib/thor-ssh/version.rb +1 -1
- metadata +4 -4
data/lib/thor-ssh/actions.rb
CHANGED
|
@@ -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
|
|
64
|
+
return exec(command)
|
|
60
65
|
end
|
|
61
66
|
end
|
|
62
67
|
|
data/lib/thor-ssh/version.rb
CHANGED
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
|
|
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-
|
|
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: -
|
|
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: -
|
|
182
|
+
hash: -1305954903121655553
|
|
183
183
|
requirements: []
|
|
184
184
|
rubyforge_project:
|
|
185
185
|
rubygems_version: 1.8.22
|