hpcloud 2.0.5 → 2.0.6

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.
@@ -206,11 +206,15 @@ module HP
206
206
  def set_personality(directory)
207
207
  return if directory.nil?
208
208
  @personality = []
209
+ unless File.exists?(directory)
210
+ set_error("Directory does not exists '#{directory}'")
211
+ return false
212
+ end
209
213
  Dir.glob("#{directory}/**/*").each { |file|
210
214
  unless File.directory?(file)
211
215
  rfile = file.gsub(directory, '')
212
216
  hsh = { "path" => rfile,
213
- "contents" => Base64.encode64(File.read(file)) }
217
+ "contents" => File.read(file) }
214
218
  @personality << hsh
215
219
  end
216
220
  }
@@ -21,7 +21,7 @@
21
21
 
22
22
  module HP
23
23
  module Cloud
24
- VERSION = '2.0.5'
25
- SHA1 = 'db4a9ca1dabc3d7a37b27b4b40265b95461932d8'
24
+ VERSION = '2.0.6'
25
+ SHA1 = '839edf03a372bf62a59caebcee1908e5018a5d4b'
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hpcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: