appfog-vmc-plugin 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/appfog-vmc-plugin/version.rb +1 -1
- data/lib/appfog-vmc-plugin/vmc/app/apps.rb +25 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTYwZGMwNDRmMzRkYWRlY2I2ZDAwZTliZTZmYjUwMmEyYjU1NzUzMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWY2NDliZmYyYzZmY2M4NDg0M2UzNjg5NTEwNDJkZDE1YjRlNDgzYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGViZmM4NWI2Njc2YWI1NjNkMmEyOTk1MDBkNTMzYTBiNTE2ZDI4MDM4OWE0
|
10
|
+
OWNkNmY2ZWJkY2FhNDEyN2U1ZTU2NzhlYjBlODE3ZWY4MDY1OTk1YTU2YzNk
|
11
|
+
MDgwM2UzM2EyMzFkM2JhMTZmY2M3ZTE5ODY2ZjNiNjkxMTk1NTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjUzZjY5OWVjMDcxNzE5NjY4YzE4ODkzOTZjOTQ2NTIzY2I3NTgzNDIyMTI3
|
14
|
+
YTFhODUyM2JkMDMzMWM2ODMzNmMyYjBmY2UyNWU0ZjA2ODQzNjczZDQ1YzU2
|
15
|
+
MmM5MjdjYTFmNTNiMjgxYzVhNzIxZTdhYjRjYTRhOGYzYTJmNmI=
|
@@ -1,5 +1,29 @@
|
|
1
1
|
module VMC::App
|
2
2
|
class Apps < Base
|
3
|
-
|
3
|
+
def display_apps_table(apps)
|
4
|
+
table(
|
5
|
+
["name", "infra", "status", "usage", v2? && "plan", "runtime", "urls", "services"],
|
6
|
+
apps.collect { |a|
|
7
|
+
[ c(a.name, :name),
|
8
|
+
c(a.infra.name, :infra),
|
9
|
+
app_status(a),
|
10
|
+
"#{a.total_instances} x #{human_mb(a.memory)}",
|
11
|
+
v2? && (a.production ? "prod" : "dev"),
|
12
|
+
a.runtime.name,
|
13
|
+
if a.urls.empty?
|
14
|
+
d("none")
|
15
|
+
elsif a.urls.size == 1
|
16
|
+
a.url
|
17
|
+
else
|
18
|
+
a.urls.join(", ")
|
19
|
+
end,
|
20
|
+
if a.services.empty?
|
21
|
+
d("none")
|
22
|
+
else
|
23
|
+
a.services.collect {|s| c(s.name, :name)}.join(", ")
|
24
|
+
end
|
25
|
+
]
|
26
|
+
})
|
27
|
+
end
|
4
28
|
end
|
5
29
|
end
|
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.2
|
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-03-
|
12
|
+
date: 2013-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cfoundry
|