admin-vmc-plugin 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,17 @@ require "vmc/cli"
2
2
 
3
3
  module VMCAdmin
4
4
  class ServiceAuthToken < VMC::CLI
5
+ def precondition
6
+ unless File.exists? target_file
7
+ fail "Please select a target with 'vmc target'."
8
+ end
9
+
10
+ unless client.logged_in?
11
+ fail "Please log in with 'vmc login'."
12
+ end
13
+ end
14
+
15
+
5
16
  desc "List service auth tokens"
6
17
  group :admin
7
18
  def service_auth_tokens
@@ -1,3 +1,3 @@
1
1
  module VMCAdmin
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: admin-vmc-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Suraci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-08 00:00:00 Z
18
+ date: 2012-09-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: cfoundry