cap-rightscale 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cap-rightscale}
8
- s.version = "0.0.11"
8
+ s.version = "0.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Satoshi Ohki"]
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  "lib/cap-rightscale/configuration/rightscale.rb",
35
35
  "lib/cap-rightscale/recipes.rb",
36
36
  "lib/cap-rightscale/recipes/rightscale/cache.rb",
37
+ "lib/cap-rightscale/utils/rs_utils.rb",
37
38
  "spec/cap-rightscale_spec.rb",
38
39
  "spec/spec_helper.rb"
39
40
  ]
@@ -0,0 +1,13 @@
1
+ class RSUtils
2
+ def self.mk_rs_cache_dir(prefix)
3
+ tmpdir = Dir.tmpdir
4
+ _prefix = prefix || "cap-rightscale"
5
+ begin
6
+ path = "#{tmpdir}/#{_prefix}-#{ENV['USER']}-#{rand(0x100000000).to_s(36)}"
7
+ Dir.mkdir(path, 0700)
8
+ rescue Errno::EEXIST
9
+ logger.warn(e)
10
+ exit(1)
11
+ end
12
+ end
13
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-rightscale
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Satoshi Ohki
@@ -121,6 +121,7 @@ files:
121
121
  - lib/cap-rightscale/configuration/rightscale.rb
122
122
  - lib/cap-rightscale/recipes.rb
123
123
  - lib/cap-rightscale/recipes/rightscale/cache.rb
124
+ - lib/cap-rightscale/utils/rs_utils.rb
124
125
  - spec/cap-rightscale_spec.rb
125
126
  - spec/spec_helper.rb
126
127
  has_rdoc: true