ztk 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ztk/ssh/command.rb +2 -2
- data/lib/ztk/ssh/file.rb +1 -1
- data/lib/ztk/version.rb +1 -1
- metadata +3 -3
data/lib/ztk/ssh/command.rb
CHANGED
@@ -24,7 +24,7 @@ module ZTK
|
|
24
24
|
|
25
25
|
# Builds our SSH console command.
|
26
26
|
def console_command
|
27
|
-
verbosity = ((ENV['LOG_LEVEL']
|
27
|
+
verbosity = ((ENV['LOG_LEVEL'] == "DEBUG") ? '-vv' : '-q')
|
28
28
|
|
29
29
|
command = [ "/usr/bin/env ssh" ]
|
30
30
|
command << [ verbosity ]
|
@@ -48,7 +48,7 @@ module ZTK
|
|
48
48
|
!config.proxy_user and log_and_raise(SSHError, "You must specify an proxy user in order to SSH proxy.")
|
49
49
|
!config.proxy_host_name and log_and_raise(SSHError, "You must specify an proxy host_name in order to SSH proxy.")
|
50
50
|
|
51
|
-
verbosity = ((ENV['LOG_LEVEL']
|
51
|
+
verbosity = ((ENV['LOG_LEVEL'] == "DEBUG") ? '-vv' : '-q')
|
52
52
|
|
53
53
|
command = ["/usr/bin/env ssh"]
|
54
54
|
command << [ verbosity ]
|
data/lib/ztk/ssh/file.rb
CHANGED
@@ -36,7 +36,7 @@ module ZTK
|
|
36
36
|
# to change ownership of the target file to (i.e. 'root:root').
|
37
37
|
# @option options [String] :chmod An octal file mode which to set the
|
38
38
|
# target file to (i.e. '0755').
|
39
|
-
# @return [Boolean] Returns true if
|
39
|
+
# @return [Boolean] Returns true if successful.
|
40
40
|
def file(options={}, &block)
|
41
41
|
target = options[:target]
|
42
42
|
chown = options[:chown]
|
data/lib/ztk/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ztk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -246,7 +246,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
246
246
|
version: '0'
|
247
247
|
segments:
|
248
248
|
- 0
|
249
|
-
hash:
|
249
|
+
hash: 368115665755490767
|
250
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
251
|
none: false
|
252
252
|
requirements:
|
@@ -255,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
255
255
|
version: '0'
|
256
256
|
segments:
|
257
257
|
- 0
|
258
|
-
hash:
|
258
|
+
hash: 368115665755490767
|
259
259
|
requirements: []
|
260
260
|
rubyforge_project:
|
261
261
|
rubygems_version: 1.8.25
|