vagrant-rightscaleshim 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module VagrantPlugins
31
31
  def call(env)
32
32
  one_time_runlist_file = env[:machine].config.rightscaleshim.one_time_runlist_file
33
33
 
34
- if one_time_runlist_file && File.exists?(one_time_runlist_file)
34
+ if one_time_runlist_file.instance_of?(::String) && File.exists?(one_time_runlist_file)
35
35
  FileUtils.rm one_time_runlist_file
36
36
  end
37
37
 
@@ -31,7 +31,7 @@ module VagrantPlugins
31
31
  def call(env)
32
32
  shim_dir = env[:machine].config.rightscaleshim.shim_dir
33
33
 
34
- if shim_dir && File.directory?(shim_dir)
34
+ if shim_dir.instance_of?(::String) && File.directory?(shim_dir)
35
35
  FileUtils.rm_rf shim_dir
36
36
  end
37
37
 
@@ -33,7 +33,7 @@ module VagrantPlugins
33
33
  run_list_dir = env[:machine].config.rightscaleshim.run_list_dir
34
34
  one_time_runlist_file = env[:machine].config.rightscaleshim.one_time_runlist_file
35
35
 
36
- if shim_dir && !shim_dir.empty? && run_list_dir && !run_list_dir.empty?
36
+ if shim_dir && shim_dir.instance_of?(::String) && run_list_dir && run_list_dir.instance_of?(::String)
37
37
  node_js_file = File.join(Dir.pwd, shim_dir, 'node.js')
38
38
  dispatch_dir = File.join(Dir.pwd, shim_dir, 'dispatch')
39
39
  FileUtils.mkdir_p dispatch_dir unless File.directory? dispatch_dir
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-rightscaleshim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-11 00:00:00.000000000 Z
12
+ date: 2013-07-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Allows RightScale ServerTemplate development to be performed primarily
15
15
  within Vagrant
@@ -43,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
43
43
  version: '0'
44
44
  segments:
45
45
  - 0
46
- hash: 3590498104088731916
46
+ hash: -4280424848759565613
47
47
  required_rubygems_version: !ruby/object:Gem::Requirement
48
48
  none: false
49
49
  requirements:
@@ -52,7 +52,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  version: '0'
53
53
  segments:
54
54
  - 0
55
- hash: 3590498104088731916
55
+ hash: -4280424848759565613
56
56
  requirements: []
57
57
  rubyforge_project:
58
58
  rubygems_version: 1.8.25