appfog-vmc-plugin 0.1.10 → 0.1.11
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.
- checksums.yaml +8 -8
- data/lib/appfog-vmc-plugin/cfoundry/client.rb +2 -6
- data/lib/appfog-vmc-plugin/cfoundry/upload_helpers.rb +20 -0
- data/lib/appfog-vmc-plugin/cfoundry/v1/client.rb +11 -2
- data/lib/appfog-vmc-plugin/version.rb +1 -1
- data/lib/appfog-vmc-plugin/vmc/user/base.rb +0 -6
- data/lib/appfog-vmc-plugin/vmc/user/create.rb +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODE4YTFhZjgwNDk1Y2EwNmQ2YzUxYWQ1MmQ1MGExMmJkZDVkMGNhMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDUyYTAxYzMyNzhlYTkxMzYxMWQ2ZWU3NzNmYTRiOWMyYWE3MGUwZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTBlYWVhYjg4NTEyYTBiYzZhMmMwNGU2ZTM1NjU4MGE3MTc1MjEzOTRmYTdj
|
10
|
+
Y2ZjNGYxZWE3YmVkYmI2Y2IyMGRiZjdhNTRlZTkzYzVjN2I3NDkxZTQyNzdm
|
11
|
+
MTNmMjdjM2VjMWJhYTJlMTBkNzQ0OGJjYWUzYTk3ZmU2OTUxMGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODk4YzM4MDk4ZDFhYzBiODlhMWQ0ZDkxZjkxYTQyZjgzMGU2NTAyNjMzMGM4
|
14
|
+
ZDhhNzY1MGJlZWQyM2VhYjM2MGQyZjFhYjBiYTgyZjM3MzcyODAwNTg0OTk2
|
15
|
+
Mjc1Y2ZkYTM1OGYwNjhjYzdmZDY3NzAwYTI2OTEwODc1M2IyYmU=
|
@@ -48,5 +48,25 @@ module CFoundry
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
51
|
+
|
52
|
+
def prune_empty_directories(path)
|
53
|
+
all_files = Dir["#{path}/**/{*,.*}"]
|
54
|
+
all_files.reject! { |fn| fn =~ /\/\.+$/ }
|
55
|
+
|
56
|
+
directories = all_files.select { |x| File.directory?(x) }
|
57
|
+
directories.sort! { |a, b| b.size <=> a.size }
|
58
|
+
|
59
|
+
directories.each do |directory|
|
60
|
+
entries = Dir.entries(directory) - %w{. ..}
|
61
|
+
if entries.empty?
|
62
|
+
# Better handling of symlinks
|
63
|
+
if !File.symlink?(directory)
|
64
|
+
FileUtils.rmdir(directory)
|
65
|
+
else
|
66
|
+
File.unlink(directory)
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
51
71
|
end
|
52
72
|
end
|
@@ -25,7 +25,10 @@ module CFoundry::V1
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def infra_by_name(name)
|
28
|
-
|
28
|
+
if name == "none"
|
29
|
+
return Infra.new("none", "none", "No infra selected", "no-infra.af.cm", "none", "none")
|
30
|
+
end
|
31
|
+
infras.find { |i| i.name == name } unless name.nil?
|
29
32
|
end
|
30
33
|
|
31
34
|
# Added to support downloads
|
@@ -51,7 +54,13 @@ module CFoundry::V1
|
|
51
54
|
def services(options = {})
|
52
55
|
services = []
|
53
56
|
|
54
|
-
@base.system_services
|
57
|
+
service_instances = @base.system_services
|
58
|
+
|
59
|
+
if options[:infras] != true
|
60
|
+
service_instances = { none: service_instances }
|
61
|
+
end
|
62
|
+
|
63
|
+
service_instances.each do |infra, infra_services|
|
55
64
|
infra_services.each do |type, vendors|
|
56
65
|
vendors.each do |vendor, providers|
|
57
66
|
providers.each do |provider, properties|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appfog-vmc-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Santeford
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cfoundry
|
@@ -65,6 +65,7 @@ files:
|
|
65
65
|
- lib/appfog-vmc-plugin/vmc/app/instances.rb
|
66
66
|
- lib/appfog-vmc-plugin/vmc/start/login.rb
|
67
67
|
- lib/appfog-vmc-plugin/vmc/user/base.rb
|
68
|
+
- lib/appfog-vmc-plugin/vmc/user/create.rb
|
68
69
|
- lib/appfog-vmc-plugin/vmc.rb
|
69
70
|
- lib/manifests-vmc-plugin/errors.rb
|
70
71
|
- lib/manifests-vmc-plugin/loader/builder.rb
|