af 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. data/LICENSE +24 -0
  2. data/README.md +92 -0
  3. data/Rakefile +17 -0
  4. data/bin/af +6 -0
  5. data/lib/cli.rb +30 -0
  6. data/lib/cli/commands/admin.rb +77 -0
  7. data/lib/cli/commands/apps.rb +940 -0
  8. data/lib/cli/commands/base.rb +79 -0
  9. data/lib/cli/commands/misc.rb +128 -0
  10. data/lib/cli/commands/services.rb +86 -0
  11. data/lib/cli/commands/user.rb +60 -0
  12. data/lib/cli/config.rb +110 -0
  13. data/lib/cli/core_ext.rb +119 -0
  14. data/lib/cli/errors.rb +19 -0
  15. data/lib/cli/frameworks.rb +109 -0
  16. data/lib/cli/runner.rb +490 -0
  17. data/lib/cli/services_helper.rb +78 -0
  18. data/lib/cli/usage.rb +104 -0
  19. data/lib/cli/version.rb +7 -0
  20. data/lib/cli/zip_util.rb +77 -0
  21. data/lib/vmc.rb +3 -0
  22. data/lib/vmc/client.rb +451 -0
  23. data/lib/vmc/const.rb +21 -0
  24. data/spec/assets/app_info.txt +9 -0
  25. data/spec/assets/app_listings.txt +9 -0
  26. data/spec/assets/bad_create_app.txt +9 -0
  27. data/spec/assets/delete_app.txt +9 -0
  28. data/spec/assets/global_service_listings.txt +9 -0
  29. data/spec/assets/good_create_app.txt +9 -0
  30. data/spec/assets/good_create_service.txt +9 -0
  31. data/spec/assets/info_authenticated.txt +27 -0
  32. data/spec/assets/info_return.txt +15 -0
  33. data/spec/assets/info_return_bad.txt +16 -0
  34. data/spec/assets/list_users.txt +13 -0
  35. data/spec/assets/login_fail.txt +9 -0
  36. data/spec/assets/login_success.txt +9 -0
  37. data/spec/assets/sample_token.txt +1 -0
  38. data/spec/assets/service_already_exists.txt +9 -0
  39. data/spec/assets/service_listings.txt +9 -0
  40. data/spec/assets/service_not_found.txt +9 -0
  41. data/spec/assets/user_info.txt +9 -0
  42. data/spec/spec_helper.rb +11 -0
  43. data/spec/unit/cli_opts_spec.rb +68 -0
  44. data/spec/unit/client_spec.rb +332 -0
  45. metadata +221 -0
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: af
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 12
9
+ version: 0.3.12
10
+ platform: ruby
11
+ authors:
12
+ - AppFog
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-08-24 00:00:00 -07:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: json_pure
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 5
30
+ - 1
31
+ version: 1.5.1
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: rubyzip2
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 2
43
+ - 0
44
+ - 1
45
+ version: 2.0.1
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: highline
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 6
58
+ - 1
59
+ version: 1.6.1
60
+ type: :runtime
61
+ version_requirements: *id003
62
+ - !ruby/object:Gem::Dependency
63
+ name: rest-client
64
+ prerelease: false
65
+ requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 1
71
+ - 6
72
+ - 1
73
+ version: 1.6.1
74
+ - - <
75
+ - !ruby/object:Gem::Version
76
+ segments:
77
+ - 1
78
+ - 7
79
+ - 0
80
+ version: 1.7.0
81
+ type: :runtime
82
+ version_requirements: *id004
83
+ - !ruby/object:Gem::Dependency
84
+ name: terminal-table
85
+ prerelease: false
86
+ requirement: &id005 !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ~>
89
+ - !ruby/object:Gem::Version
90
+ segments:
91
+ - 1
92
+ - 4
93
+ - 2
94
+ version: 1.4.2
95
+ type: :runtime
96
+ version_requirements: *id005
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ prerelease: false
100
+ requirement: &id006 !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ segments:
105
+ - 0
106
+ version: "0"
107
+ type: :development
108
+ version_requirements: *id006
109
+ - !ruby/object:Gem::Dependency
110
+ name: rspec
111
+ prerelease: false
112
+ requirement: &id007 !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ~>
115
+ - !ruby/object:Gem::Version
116
+ segments:
117
+ - 1
118
+ - 3
119
+ - 0
120
+ version: 1.3.0
121
+ type: :development
122
+ version_requirements: *id007
123
+ - !ruby/object:Gem::Dependency
124
+ name: webmock
125
+ prerelease: false
126
+ requirement: &id008 !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ~>
129
+ - !ruby/object:Gem::Version
130
+ segments:
131
+ - 1
132
+ - 5
133
+ - 0
134
+ version: 1.5.0
135
+ type: :development
136
+ version_requirements: *id008
137
+ description: AppFog.com CLI
138
+ email: support@appfog.com
139
+ executables:
140
+ - af
141
+ extensions: []
142
+
143
+ extra_rdoc_files:
144
+ - README.md
145
+ - LICENSE
146
+ files:
147
+ - LICENSE
148
+ - README.md
149
+ - Rakefile
150
+ - lib/cli/commands/admin.rb
151
+ - lib/cli/commands/apps.rb
152
+ - lib/cli/commands/base.rb
153
+ - lib/cli/commands/misc.rb
154
+ - lib/cli/commands/services.rb
155
+ - lib/cli/commands/user.rb
156
+ - lib/cli/config.rb
157
+ - lib/cli/core_ext.rb
158
+ - lib/cli/errors.rb
159
+ - lib/cli/frameworks.rb
160
+ - lib/cli/runner.rb
161
+ - lib/cli/services_helper.rb
162
+ - lib/cli/usage.rb
163
+ - lib/cli/version.rb
164
+ - lib/cli/zip_util.rb
165
+ - lib/cli.rb
166
+ - lib/vmc/client.rb
167
+ - lib/vmc/const.rb
168
+ - lib/vmc.rb
169
+ - spec/assets/app_info.txt
170
+ - spec/assets/app_listings.txt
171
+ - spec/assets/bad_create_app.txt
172
+ - spec/assets/delete_app.txt
173
+ - spec/assets/global_service_listings.txt
174
+ - spec/assets/good_create_app.txt
175
+ - spec/assets/good_create_service.txt
176
+ - spec/assets/info_authenticated.txt
177
+ - spec/assets/info_return.txt
178
+ - spec/assets/info_return_bad.txt
179
+ - spec/assets/list_users.txt
180
+ - spec/assets/login_fail.txt
181
+ - spec/assets/login_success.txt
182
+ - spec/assets/sample_token.txt
183
+ - spec/assets/service_already_exists.txt
184
+ - spec/assets/service_listings.txt
185
+ - spec/assets/service_not_found.txt
186
+ - spec/assets/user_info.txt
187
+ - spec/spec_helper.rb
188
+ - spec/unit/cli_opts_spec.rb
189
+ - spec/unit/client_spec.rb
190
+ has_rdoc: true
191
+ homepage: http://appfog.com
192
+ licenses: []
193
+
194
+ post_install_message:
195
+ rdoc_options: []
196
+
197
+ require_paths:
198
+ - lib
199
+ required_ruby_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ segments:
204
+ - 0
205
+ version: "0"
206
+ required_rubygems_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ segments:
211
+ - 0
212
+ version: "0"
213
+ requirements: []
214
+
215
+ rubyforge_project:
216
+ rubygems_version: 1.3.6
217
+ signing_key:
218
+ specification_version: 3
219
+ summary: AppFog.com CLI
220
+ test_files: []
221
+