kafo 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafo/param.rb +2 -6
- data/lib/kafo/progress_bar.rb +1 -1
- data/lib/kafo/puppet_command.rb +1 -1
- data/lib/kafo/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7f465dd70caa686f0ecd2259d8a5accdddcc616
|
4
|
+
data.tar.gz: 5eb7cf114773117e01350bab8793a543aca5ca0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7469af81693f8f61e36a0a7aa54bf9e8ff3ee00cda2298f2c46ae0827a64fa768673f5de79681148c3536ea374a82605e6d65c483312cf7a32d513eea4cf289
|
7
|
+
data.tar.gz: 0313549df4f32927870c1a55a91a37a0b43b897be9c364f80435d086380bd4faefa6f51ea7aa7e2b4984dbf3b86de6cc97aafb368565132c8f41aead30b510a1
|
data/lib/kafo/param.rb
CHANGED
@@ -120,12 +120,8 @@ module Kafo
|
|
120
120
|
args.map do |arg|
|
121
121
|
if arg.to_s == "$#{self.name}"
|
122
122
|
self.value
|
123
|
-
elsif arg.
|
124
|
-
|
125
|
-
elsif arg.class.name == 'Puppet::Parser::AST::Concat'
|
126
|
-
interpret_validation_args(arg.value).join
|
127
|
-
elsif arg.respond_to? :value
|
128
|
-
arg.value
|
123
|
+
elsif arg.is_a? String
|
124
|
+
arg.gsub("$#{self.name}", self.value.to_s)
|
129
125
|
else
|
130
126
|
arg
|
131
127
|
end
|
data/lib/kafo/progress_bar.rb
CHANGED
@@ -13,7 +13,7 @@ module Kafo
|
|
13
13
|
@lines = 0
|
14
14
|
@all_lines = 0
|
15
15
|
@total = :unknown
|
16
|
-
@term_width = HighLine::SystemExtensions.terminal_size[0]
|
16
|
+
@term_width = HighLine::SystemExtensions.terminal_size[0] || 0
|
17
17
|
@bar = PowerBar.new
|
18
18
|
@bar.settings.tty.infinite.template.main = infinite_template
|
19
19
|
@bar.settings.tty.finite.template.main = finite_template
|
data/lib/kafo/puppet_command.rb
CHANGED
@@ -24,7 +24,7 @@ module Kafo
|
|
24
24
|
result = [
|
25
25
|
"echo '$kafo_config_file=\"#{@configuration.config_file}\" #{custom_answer_file} #{add_progress} #{@command}'",
|
26
26
|
'|',
|
27
|
-
"RUBYLIB=#{[
|
27
|
+
"RUBYLIB=#{[@configuration.kafo_modules_dir, ::ENV['RUBYLIB']].join(File::PATH_SEPARATOR)}",
|
28
28
|
"#{puppet_path} apply #{@options.join(' ')} #{@suffix}",
|
29
29
|
].join(' ')
|
30
30
|
@logger.debug result
|
data/lib/kafo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kafo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Hulan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.1.
|
117
|
+
version: 0.1.1
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 0.1.
|
124
|
+
version: 0.1.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: puppet
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|