cloud-maker 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cloud_maker/config.rb +3 -2
  2. metadata +2 -2
@@ -14,7 +14,7 @@ module CloudMaker
14
14
  class FileContentNotFound < ContentNotFound
15
15
  end
16
16
 
17
- # `Public`: Gets/Sets the CloudMaker specific properties. The options hash
17
+ # Public: Gets/Sets the CloudMaker specific properties. The options hash
18
18
  # is formatted as:
19
19
  # {
20
20
  # 'key1' => {
@@ -396,8 +396,9 @@ module CloudMaker
396
396
  }
397
397
  strings.join(';')
398
398
  else
399
+ underscored_key = key.to_s.gsub(/[^a-zA-Z0-9_]/, '_')
399
400
  escaped_value = value.to_s.gsub(/"/, '\\\\\\\\\"')
400
- "echo \"#{key}=\\\"#{escaped_value}\\\"\" >> /etc/environment"
401
+ "echo \"#{underscored_key}=\\\"#{escaped_value}\\\"\" >> /etc/environment"
401
402
  end
402
403
  end
403
404
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-maker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-09-24 00:00:00.000000000 Z
13
+ date: 2012-10-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: colorize