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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6bce70ac2eb5590a3268fc61fa1d5b26eec0a231
4
- data.tar.gz: 6c68b15f3208c75fd702601f5059c355d3e98383
3
+ metadata.gz: c7f465dd70caa686f0ecd2259d8a5accdddcc616
4
+ data.tar.gz: 5eb7cf114773117e01350bab8793a543aca5ca0c
5
5
  SHA512:
6
- metadata.gz: a749d272c84c6a4ff863c9c67438e3f1e046b5949d4e4c491032d533d05fabe5f31c52e672bccd6d3c444bf056ca636894c878fcaf9dc0c745161a039a34f17a
7
- data.tar.gz: 54587849902f34872edc974a28fa11a63adb20f5000dd7086b534d325681fb1af69b0fef0eaf11d7116a81496826d20240b6f8746a7e623fb5aa4c188f3fb256
6
+ metadata.gz: f7469af81693f8f61e36a0a7aa54bf9e8ff3ee00cda2298f2c46ae0827a64fa768673f5de79681148c3536ea374a82605e6d65c483312cf7a32d513eea4cf289
7
+ data.tar.gz: 0313549df4f32927870c1a55a91a37a0b43b897be9c364f80435d086380bd4faefa6f51ea7aa7e2b4984dbf3b86de6cc97aafb368565132c8f41aead30b510a1
@@ -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.class.name == 'Puppet::Parser::AST::ASTArray'
124
- interpret_validation_args(arg.to_a)
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
@@ -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
@@ -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=#{["#{@configuration.gem_root}/modules", ::ENV['RUBYLIB']].join(File::PATH_SEPARATOR)}",
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
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
- VERSION = "0.8.0"
3
+ VERSION = "0.8.1"
4
4
  end
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.0
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-03 00:00:00.000000000 Z
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.0
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.0
124
+ version: 0.1.1
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: puppet
127
127
  requirement: !ruby/object:Gem::Requirement