cloudmonkey 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. data/lib/cm.rb +6 -3
  2. metadata +1 -1
data/lib/cm.rb CHANGED
@@ -94,7 +94,10 @@ module CloudMonkey
94
94
  # parameters, but nothing else
95
95
  unless params.nil?
96
96
  if params.is_a?(Hash)
97
- params.each { |key, value| input += "#{key.downcase}=#{value} " }
97
+ params.each { |key, value|
98
+ value = "\"#{value}\"" if value.is_a?(String)
99
+ input += "#{key.downcase}=#{value} "
100
+ }
98
101
  input.chop!
99
102
  elsif params.is_a?(String)
100
103
  input += params
@@ -103,7 +106,7 @@ module CloudMonkey
103
106
  end
104
107
  end
105
108
 
106
- cmd = "cloudmonkey -c #{@config} #{input}"
109
+ cmd = "cloudmonkey -c #{@config} '#{input}'"
107
110
  output = nil
108
111
 
109
112
  puts "running #{cmd}" if @debug
@@ -211,4 +214,4 @@ module CloudMonkey
211
214
  end
212
215
 
213
216
  end
214
- end
217
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmonkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: