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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2EwMmYyYjdjMzkxMTdiYmQ2MGEyYTYzNDNjM2I4NTZjMzNjYzc1OQ==
4
+ MTYwZGMwNDRmMzRkYWRlY2I2ZDAwZTliZTZmYjUwMmEyYjU1NzUzMw==
5
5
  data.tar.gz: !binary |-
6
- ZGQwODc4OGJlOGQ5YjcxYzA3Y2Q4NjM4NDk4ZDRiYjQ2MmYwMDVhZA==
6
+ ZWY2NDliZmYyYzZmY2M4NDg0M2UzNjg5NTEwNDJkZDE1YjRlNDgzYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NzViZmE0MWViYTE0Yjk0MDIxOGVjODVjYzk5YTZiYjRmZDg1ZjEzYWVmNTBh
10
- ZjI1MzI4OTJiZGY4ZGE3NmYyOTQyYzljOWU5MWExODMwYWIwMDM0NGUxZmJi
11
- MDZjMTVkODE4NTQ5YmNhOTAwMDEzMGM3MDYwNDIwNTFjNDFkNzI=
9
+ MGViZmM4NWI2Njc2YWI1NjNkMmEyOTk1MDBkNTMzYTBiNTE2ZDI4MDM4OWE0
10
+ OWNkNmY2ZWJkY2FhNDEyN2U1ZTU2NzhlYjBlODE3ZWY4MDY1OTk1YTU2YzNk
11
+ MDgwM2UzM2EyMzFkM2JhMTZmY2M3ZTE5ODY2ZjNiNjkxMTk1NTk=
12
12
  data.tar.gz: !binary |-
13
- ZWVhOTZhOWE4NzQzNjY3MmMzYzczNjZjZDUwNzFkZDJkMjk2YjRiMWFkMTc3
14
- N2JlN2QxYTMwNDU0Yjc3MTU0MTZiMmUzYTE4YmI1NjA1Y2RjYTc5MTZiNGM4
15
- N2VmYzlhMmI5NWQzNGVkYTQ0OTI2Nzg0NGY3ZmMwYzYzOWQzZjE=
13
+ MjUzZjY5OWVjMDcxNzE5NjY4YzE4ODkzOTZjOTQ2NTIzY2I3NTgzNDIyMTI3
14
+ YTFhODUyM2JkMDMzMWM2ODMzNmMyYjBmY2UyNWU0ZjA2ODQzNjczZDQ1YzU2
15
+ MmM5MjdjYTFmNTNiMjgxYzVhNzIxZTdhYjRjYTRhOGYzYTJmNmI=
@@ -1,3 +1,3 @@
1
1
  module VMCAppfog
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
@@ -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.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-06 00:00:00.000000000 Z
12
+ date: 2013-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cfoundry