vmc 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/README +58 -0
- data/Rakefile +11 -14
- data/lib/vmc.rb +1 -1
- metadata +47 -48
data/README
CHANGED
@@ -0,0 +1,58 @@
|
|
1
|
+
# Copyright 2010, VMware, Inc. Licensed under the
|
2
|
+
# MIT license, please see the LICENSE file. All rights reserved
|
3
|
+
|
4
|
+
VMC is the VMware Cloud CLI tool. This is the command line interface to VMware's Application PaaS
|
5
|
+
|
6
|
+
⚡ $ vmc -h
|
7
|
+
|
8
|
+
version # version
|
9
|
+
help, -h # show usage
|
10
|
+
|
11
|
+
aliases # lists current aliases
|
12
|
+
alias <alias>[=]<command> # create an alias for a command
|
13
|
+
|
14
|
+
target [host[:port]] # reports current target or sets the target site
|
15
|
+
info # information
|
16
|
+
register [--email, --passwd] # register and create an account
|
17
|
+
login [email] [--email, --passwd] # login
|
18
|
+
logout # logout
|
19
|
+
passwd # change password for current user
|
20
|
+
user # display current user
|
21
|
+
|
22
|
+
services # list of services available
|
23
|
+
|
24
|
+
create-service <service> [--name, --bind] # create a service instance. we will
|
25
|
+
# auto-generate a name if you leave off
|
26
|
+
# the --name flag, if you add the --bind
|
27
|
+
# flag with an app name we will also bind
|
28
|
+
# the service to that app
|
29
|
+
|
30
|
+
delete-service [service] # delete the service
|
31
|
+
|
32
|
+
bind-service <service> <appname> # bind service to appname
|
33
|
+
unbind-service <service> <appname> # unbind service from appname
|
34
|
+
|
35
|
+
apps # list your apps
|
36
|
+
push <appname> [--instances --exec
|
37
|
+
--noframework --url
|
38
|
+
--mem --path
|
39
|
+
--no-start] # push and start the application
|
40
|
+
push <appname> # push and start the application
|
41
|
+
start <appname> # start the application
|
42
|
+
stop <appname> # stop the application
|
43
|
+
restart <appname> # restart the application
|
44
|
+
delete <appname || --all> [--force] # delete the application
|
45
|
+
update <appname> [--canary] # update the application
|
46
|
+
instances <appname> [num] # list instances, scale up or down
|
47
|
+
# the number of instances
|
48
|
+
|
49
|
+
mem <appname> [memsize] # update the memory reservation for this application
|
50
|
+
|
51
|
+
crashes <appname> # list recent application crashes
|
52
|
+
crashlogs <appname> [--instance] # dump all the logs for the crashed instance
|
53
|
+
logs <appname> [--instance] # dump all the logs for the instance
|
54
|
+
files <appname> [path] [--instance] # directory listing or file download
|
55
|
+
stats <appname> # report resource usage for the application
|
56
|
+
|
57
|
+
map <appname> <url> # register the application with the url
|
58
|
+
unmap <appname> <url> # unregister the application from the url
|
data/Rakefile
CHANGED
@@ -6,28 +6,25 @@ require 'spec/rake/spectask'
|
|
6
6
|
|
7
7
|
spec = Gem::Specification.new do |s|
|
8
8
|
s.name = "vmc"
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.7"
|
10
10
|
s.author = "Ezra Zygmuntowicz"
|
11
11
|
s.email = "ez@vmware.com"
|
12
12
|
s.homepage = "http://vmware.com"
|
13
|
-
s.description = s.summary = "A gem that provides command line access to the VMWare Cloud
|
14
|
-
|
13
|
+
s.description = s.summary = "A gem that provides command line access to the VMWare Cloud Application Platform"
|
15
14
|
s.platform = Gem::Platform::RUBY
|
16
15
|
s.has_rdoc = true
|
17
16
|
s.extra_rdoc_files = ["README", "LICENSE"]
|
18
17
|
s.executables = %w(vmc vmc.bat)
|
19
18
|
# Uncomment this to add a dependency
|
20
|
-
s.add_dependency "main"
|
21
|
-
s.add_dependency "arrayfields"
|
22
|
-
s.add_dependency "fattr"
|
23
|
-
s.add_dependency "
|
24
|
-
s.add_dependency "
|
25
|
-
s.add_dependency "
|
26
|
-
s.add_dependency "
|
27
|
-
|
28
|
-
|
19
|
+
s.add_dependency "main", "~> 4.3.0"
|
20
|
+
s.add_dependency "arrayfields", "~> 4.7.4"
|
21
|
+
s.add_dependency "fattr", "~> 2.2.0"
|
22
|
+
s.add_dependency "json_pure", "~> 1.4.6"
|
23
|
+
s.add_dependency "mime-types", "~> 1.16"
|
24
|
+
s.add_dependency "rubyzip2", "~> 2.0.1"
|
25
|
+
s.add_dependency "highline", "~> 1.6.1"
|
26
|
+
|
29
27
|
s.bindir = "bin"
|
30
|
-
|
31
28
|
s.require_path = 'lib'
|
32
29
|
s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec,vendor}/**/*")
|
33
30
|
end
|
@@ -70,4 +67,4 @@ namespace "bundler" do
|
|
70
67
|
task "install:development" do
|
71
68
|
sh("bundle install --without test production")
|
72
69
|
end
|
73
|
-
end
|
70
|
+
end
|
data/lib/vmc.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 7
|
10
|
+
version: 0.0.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ezra Zygmuntowicz
|
@@ -24,12 +24,14 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 51
|
30
30
|
segments:
|
31
|
+
- 4
|
32
|
+
- 3
|
31
33
|
- 0
|
32
|
-
version:
|
34
|
+
version: 4.3.0
|
33
35
|
type: :runtime
|
34
36
|
version_requirements: *id001
|
35
37
|
- !ruby/object:Gem::Dependency
|
@@ -38,12 +40,14 @@ dependencies:
|
|
38
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
42
|
requirements:
|
41
|
-
- -
|
43
|
+
- - ~>
|
42
44
|
- !ruby/object:Gem::Version
|
43
|
-
hash:
|
45
|
+
hash: 43
|
44
46
|
segments:
|
45
|
-
-
|
46
|
-
|
47
|
+
- 4
|
48
|
+
- 7
|
49
|
+
- 4
|
50
|
+
version: 4.7.4
|
47
51
|
type: :runtime
|
48
52
|
version_requirements: *id002
|
49
53
|
- !ruby/object:Gem::Dependency
|
@@ -52,85 +56,80 @@ dependencies:
|
|
52
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
53
57
|
none: false
|
54
58
|
requirements:
|
55
|
-
- -
|
59
|
+
- - ~>
|
56
60
|
- !ruby/object:Gem::Version
|
57
|
-
hash:
|
61
|
+
hash: 7
|
58
62
|
segments:
|
63
|
+
- 2
|
64
|
+
- 2
|
59
65
|
- 0
|
60
|
-
version:
|
66
|
+
version: 2.2.0
|
61
67
|
type: :runtime
|
62
68
|
version_requirements: *id003
|
63
69
|
- !ruby/object:Gem::Dependency
|
64
|
-
name:
|
70
|
+
name: json_pure
|
65
71
|
prerelease: false
|
66
72
|
requirement: &id004 !ruby/object:Gem::Requirement
|
67
73
|
none: false
|
68
74
|
requirements:
|
69
|
-
- -
|
75
|
+
- - ~>
|
70
76
|
- !ruby/object:Gem::Version
|
71
|
-
hash:
|
77
|
+
hash: 11
|
72
78
|
segments:
|
73
|
-
-
|
74
|
-
|
79
|
+
- 1
|
80
|
+
- 4
|
81
|
+
- 6
|
82
|
+
version: 1.4.6
|
75
83
|
type: :runtime
|
76
84
|
version_requirements: *id004
|
77
85
|
- !ruby/object:Gem::Dependency
|
78
|
-
name:
|
86
|
+
name: mime-types
|
79
87
|
prerelease: false
|
80
88
|
requirement: &id005 !ruby/object:Gem::Requirement
|
81
89
|
none: false
|
82
90
|
requirements:
|
83
|
-
- -
|
91
|
+
- - ~>
|
84
92
|
- !ruby/object:Gem::Version
|
85
|
-
hash:
|
93
|
+
hash: 47
|
86
94
|
segments:
|
87
|
-
-
|
88
|
-
|
95
|
+
- 1
|
96
|
+
- 16
|
97
|
+
version: "1.16"
|
89
98
|
type: :runtime
|
90
99
|
version_requirements: *id005
|
91
100
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
101
|
+
name: rubyzip2
|
93
102
|
prerelease: false
|
94
103
|
requirement: &id006 !ruby/object:Gem::Requirement
|
95
104
|
none: false
|
96
105
|
requirements:
|
97
|
-
- -
|
106
|
+
- - ~>
|
98
107
|
- !ruby/object:Gem::Version
|
99
|
-
hash:
|
108
|
+
hash: 13
|
100
109
|
segments:
|
110
|
+
- 2
|
101
111
|
- 0
|
102
|
-
|
112
|
+
- 1
|
113
|
+
version: 2.0.1
|
103
114
|
type: :runtime
|
104
115
|
version_requirements: *id006
|
105
116
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
117
|
+
name: highline
|
107
118
|
prerelease: false
|
108
119
|
requirement: &id007 !ruby/object:Gem::Requirement
|
109
120
|
none: false
|
110
121
|
requirements:
|
111
|
-
- -
|
122
|
+
- - ~>
|
112
123
|
- !ruby/object:Gem::Version
|
113
|
-
hash:
|
124
|
+
hash: 13
|
114
125
|
segments:
|
115
|
-
-
|
116
|
-
|
126
|
+
- 1
|
127
|
+
- 6
|
128
|
+
- 1
|
129
|
+
version: 1.6.1
|
117
130
|
type: :runtime
|
118
131
|
version_requirements: *id007
|
119
|
-
|
120
|
-
name: highline
|
121
|
-
prerelease: false
|
122
|
-
requirement: &id008 !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
|
-
requirements:
|
125
|
-
- - ">="
|
126
|
-
- !ruby/object:Gem::Version
|
127
|
-
hash: 3
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
version: "0"
|
131
|
-
type: :runtime
|
132
|
-
version_requirements: *id008
|
133
|
-
description: A gem that provides command line access to the VMWare Cloud OS
|
132
|
+
description: A gem that provides command line access to the VMWare Cloud Application Platform
|
134
133
|
email: ez@vmware.com
|
135
134
|
executables:
|
136
135
|
- vmc
|
@@ -198,6 +197,6 @@ rubyforge_project:
|
|
198
197
|
rubygems_version: 1.3.7
|
199
198
|
signing_key:
|
200
199
|
specification_version: 3
|
201
|
-
summary: A gem that provides command line access to the VMWare Cloud
|
200
|
+
summary: A gem that provides command line access to the VMWare Cloud Application Platform
|
202
201
|
test_files: []
|
203
202
|
|