trucker-cli 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. checksums.yaml +15 -0
  2. data/LICENSE +1277 -0
  3. data/Rakefile +13 -0
  4. data/bin/truck +18 -0
  5. data/lib/admin/README.md +30 -0
  6. data/lib/admin/curl.rb +59 -0
  7. data/lib/admin/guid.rb +89 -0
  8. data/lib/admin/plugin.rb +8 -0
  9. data/lib/admin/service_auth_token.rb +93 -0
  10. data/lib/admin/service_broker/add.rb +54 -0
  11. data/lib/admin/service_broker/remove.rb +33 -0
  12. data/lib/admin/service_broker/service_brokers.rb +29 -0
  13. data/lib/admin/service_broker/update.rb +60 -0
  14. data/lib/admin/set_quota.rb +44 -0
  15. data/lib/cf.rb +14 -0
  16. data/lib/cf/cli.rb +495 -0
  17. data/lib/cf/cli/app/app.rb +43 -0
  18. data/lib/cf/cli/app/apps.rb +87 -0
  19. data/lib/cf/cli/app/base.rb +72 -0
  20. data/lib/cf/cli/app/delete.rb +95 -0
  21. data/lib/cf/cli/app/deprecated.rb +11 -0
  22. data/lib/cf/cli/app/env.rb +99 -0
  23. data/lib/cf/cli/app/events.rb +45 -0
  24. data/lib/cf/cli/app/files.rb +137 -0
  25. data/lib/cf/cli/app/health.rb +26 -0
  26. data/lib/cf/cli/app/instances.rb +53 -0
  27. data/lib/cf/cli/app/logs.rb +76 -0
  28. data/lib/cf/cli/app/push.rb +104 -0
  29. data/lib/cf/cli/app/push/create.rb +108 -0
  30. data/lib/cf/cli/app/push/interactions.rb +90 -0
  31. data/lib/cf/cli/app/push/sync.rb +57 -0
  32. data/lib/cf/cli/app/rename.rb +35 -0
  33. data/lib/cf/cli/app/restart.rb +31 -0
  34. data/lib/cf/cli/app/scale.rb +63 -0
  35. data/lib/cf/cli/app/start.rb +175 -0
  36. data/lib/cf/cli/app/stats.rb +66 -0
  37. data/lib/cf/cli/app/stop.rb +27 -0
  38. data/lib/cf/cli/domain/base.rb +9 -0
  39. data/lib/cf/cli/domain/domains.rb +40 -0
  40. data/lib/cf/cli/domain/map.rb +55 -0
  41. data/lib/cf/cli/domain/unmap.rb +56 -0
  42. data/lib/cf/cli/help.rb +15 -0
  43. data/lib/cf/cli/interactive.rb +104 -0
  44. data/lib/cf/cli/login_requirements.rb +13 -0
  45. data/lib/cf/cli/organization/base.rb +12 -0
  46. data/lib/cf/cli/organization/create.rb +36 -0
  47. data/lib/cf/cli/organization/delete.rb +61 -0
  48. data/lib/cf/cli/organization/org.rb +45 -0
  49. data/lib/cf/cli/organization/orgs.rb +30 -0
  50. data/lib/cf/cli/organization/rename.rb +36 -0
  51. data/lib/cf/cli/populators/base.rb +16 -0
  52. data/lib/cf/cli/populators/organization.rb +32 -0
  53. data/lib/cf/cli/populators/populator_methods.rb +64 -0
  54. data/lib/cf/cli/populators/space.rb +33 -0
  55. data/lib/cf/cli/populators/target.rb +14 -0
  56. data/lib/cf/cli/route/base.rb +9 -0
  57. data/lib/cf/cli/route/delete.rb +28 -0
  58. data/lib/cf/cli/route/map.rb +68 -0
  59. data/lib/cf/cli/route/routes.rb +26 -0
  60. data/lib/cf/cli/route/unmap.rb +56 -0
  61. data/lib/cf/cli/service/base.rb +9 -0
  62. data/lib/cf/cli/service/bind.rb +43 -0
  63. data/lib/cf/cli/service/create.rb +158 -0
  64. data/lib/cf/cli/service/delete.rb +82 -0
  65. data/lib/cf/cli/service/rename.rb +35 -0
  66. data/lib/cf/cli/service/service.rb +40 -0
  67. data/lib/cf/cli/service/service_helper.rb +25 -0
  68. data/lib/cf/cli/service/service_instance_helper.rb +100 -0
  69. data/lib/cf/cli/service/services.rb +110 -0
  70. data/lib/cf/cli/service/unbind.rb +36 -0
  71. data/lib/cf/cli/space/base.rb +27 -0
  72. data/lib/cf/cli/space/create.rb +66 -0
  73. data/lib/cf/cli/space/delete.rb +55 -0
  74. data/lib/cf/cli/space/rename.rb +38 -0
  75. data/lib/cf/cli/space/space.rb +66 -0
  76. data/lib/cf/cli/space/spaces.rb +57 -0
  77. data/lib/cf/cli/space/switch.rb +18 -0
  78. data/lib/cf/cli/start/base.rb +35 -0
  79. data/lib/cf/cli/start/colors.rb +13 -0
  80. data/lib/cf/cli/start/login.rb +104 -0
  81. data/lib/cf/cli/start/logout.rb +17 -0
  82. data/lib/cf/cli/start/target.rb +50 -0
  83. data/lib/cf/cli/start/target_prettifier.rb +35 -0
  84. data/lib/cf/cli/start/targets.rb +16 -0
  85. data/lib/cf/cli/user/base.rb +29 -0
  86. data/lib/cf/cli/user/create.rb +51 -0
  87. data/lib/cf/cli/user/passwd.rb +36 -0
  88. data/lib/cf/cli/user/register.rb +42 -0
  89. data/lib/cf/cli/user/users.rb +32 -0
  90. data/lib/cf/constants.rb +10 -0
  91. data/lib/cf/errors.rb +19 -0
  92. data/lib/cf/plugin.rb +56 -0
  93. data/lib/cf/spacing.rb +89 -0
  94. data/lib/cf/spec_helper.rb +1 -0
  95. data/lib/cf/test_support.rb +6 -0
  96. data/lib/cf/version.rb +3 -0
  97. data/lib/console/README.md +16 -0
  98. data/lib/console/console.rb +187 -0
  99. data/lib/console/plugin.rb +32 -0
  100. data/lib/manifests/errors.rb +35 -0
  101. data/lib/manifests/loader.rb +31 -0
  102. data/lib/manifests/loader/builder.rb +39 -0
  103. data/lib/manifests/loader/normalizer.rb +145 -0
  104. data/lib/manifests/loader/resolver.rb +79 -0
  105. data/lib/manifests/manifests.rb +343 -0
  106. data/lib/manifests/plugin.rb +140 -0
  107. data/lib/micro/README.md +25 -0
  108. data/lib/micro/errors.rb +4 -0
  109. data/lib/micro/micro.rb +56 -0
  110. data/lib/micro/plugin.rb +197 -0
  111. data/lib/micro/switcher/base.rb +79 -0
  112. data/lib/micro/switcher/darwin.rb +21 -0
  113. data/lib/micro/switcher/dummy.rb +15 -0
  114. data/lib/micro/switcher/linux.rb +16 -0
  115. data/lib/micro/switcher/windows.rb +31 -0
  116. data/lib/micro/vmrun.rb +175 -0
  117. data/lib/tasks/gem_release.rake +56 -0
  118. data/lib/tasks/windows_build.rake +14 -0
  119. data/lib/tunnel/README.md +29 -0
  120. data/lib/tunnel/config/clients.yml +17 -0
  121. data/lib/tunnel/helper-app/Gemfile +10 -0
  122. data/lib/tunnel/helper-app/Gemfile.lock +48 -0
  123. data/lib/tunnel/helper-app/server.rb +43 -0
  124. data/lib/tunnel/plugin.rb +183 -0
  125. data/lib/tunnel/tunnel.rb +295 -0
  126. data/spec/admin/curl_spec.rb +52 -0
  127. data/spec/admin/guid_spec.rb +85 -0
  128. data/spec/admin/service_broker/add_spec.rb +64 -0
  129. data/spec/admin/service_broker/remove_spec.rb +46 -0
  130. data/spec/admin/service_broker/service_brokers_spec.rb +34 -0
  131. data/spec/admin/service_broker/update_spec.rb +51 -0
  132. data/spec/admin/set_quota_spec.rb +89 -0
  133. data/spec/assets/env/Gemfile +4 -0
  134. data/spec/assets/env/Gemfile.lock +20 -0
  135. data/spec/assets/env/env_test.rb +58 -0
  136. data/spec/assets/hello-sinatra/Gemfile +3 -0
  137. data/spec/assets/hello-sinatra/Gemfile.lock +17 -0
  138. data/spec/assets/hello-sinatra/config.ru +3 -0
  139. data/spec/assets/hello-sinatra/fat-cat-makes-app-larger.png +0 -0
  140. data/spec/assets/hello-sinatra/main.rb +8 -0
  141. data/spec/assets/rails328_ruby187_app/Gemfile +39 -0
  142. data/spec/assets/rails328_ruby187_app/README.rdoc +261 -0
  143. data/spec/assets/rails328_ruby187_app/Rakefile +7 -0
  144. data/spec/assets/rails328_ruby187_app/app/assets/images/rails.png +0 -0
  145. data/spec/assets/rails328_ruby187_app/app/assets/javascripts/application.js +15 -0
  146. data/spec/assets/rails328_ruby187_app/app/assets/stylesheets/application.css +13 -0
  147. data/spec/assets/rails328_ruby187_app/app/controllers/application_controller.rb +3 -0
  148. data/spec/assets/rails328_ruby187_app/app/helpers/application_helper.rb +2 -0
  149. data/spec/assets/rails328_ruby187_app/app/views/layouts/application.html.erb +14 -0
  150. data/spec/assets/rails328_ruby187_app/config.ru +4 -0
  151. data/spec/assets/rails328_ruby187_app/config/application.rb +62 -0
  152. data/spec/assets/rails328_ruby187_app/config/boot.rb +6 -0
  153. data/spec/assets/rails328_ruby187_app/config/database.yml +25 -0
  154. data/spec/assets/rails328_ruby187_app/config/environment.rb +5 -0
  155. data/spec/assets/rails328_ruby187_app/config/environments/development.rb +37 -0
  156. data/spec/assets/rails328_ruby187_app/config/environments/production.rb +67 -0
  157. data/spec/assets/rails328_ruby187_app/config/environments/test.rb +37 -0
  158. data/spec/assets/rails328_ruby187_app/config/initializers/backtrace_silencers.rb +7 -0
  159. data/spec/assets/rails328_ruby187_app/config/initializers/inflections.rb +15 -0
  160. data/spec/assets/rails328_ruby187_app/config/initializers/mime_types.rb +5 -0
  161. data/spec/assets/rails328_ruby187_app/config/initializers/secret_token.rb +7 -0
  162. data/spec/assets/rails328_ruby187_app/config/initializers/session_store.rb +8 -0
  163. data/spec/assets/rails328_ruby187_app/config/initializers/wrap_parameters.rb +14 -0
  164. data/spec/assets/rails328_ruby187_app/config/locales/en.yml +5 -0
  165. data/spec/assets/rails328_ruby187_app/config/routes.rb +58 -0
  166. data/spec/assets/rails328_ruby187_app/db/seeds.rb +7 -0
  167. data/spec/assets/rails328_ruby187_app/doc/README_FOR_APP +2 -0
  168. data/spec/assets/rails328_ruby187_app/manifest.yml +7 -0
  169. data/spec/assets/rails328_ruby187_app/public/404.html +26 -0
  170. data/spec/assets/rails328_ruby187_app/public/422.html +26 -0
  171. data/spec/assets/rails328_ruby187_app/public/500.html +25 -0
  172. data/spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css +0 -0
  173. data/spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css.gz +0 -0
  174. data/spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js +17 -0
  175. data/spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js.gz +0 -0
  176. data/spec/assets/rails328_ruby187_app/public/assets/application.css +0 -0
  177. data/spec/assets/rails328_ruby187_app/public/assets/application.css.gz +0 -0
  178. data/spec/assets/rails328_ruby187_app/public/assets/application.js +17 -0
  179. data/spec/assets/rails328_ruby187_app/public/assets/application.js.gz +0 -0
  180. data/spec/assets/rails328_ruby187_app/public/assets/manifest.yml +4 -0
  181. data/spec/assets/rails328_ruby187_app/public/assets/rails-be8732dac73d845ac5b142c8fb5f9fb0.png +0 -0
  182. data/spec/assets/rails328_ruby187_app/public/assets/rails.png +0 -0
  183. data/spec/assets/rails328_ruby187_app/public/favicon.ico +0 -0
  184. data/spec/assets/rails328_ruby187_app/public/index.html +241 -0
  185. data/spec/assets/rails328_ruby187_app/public/robots.txt +5 -0
  186. data/spec/assets/rails328_ruby187_app/script/rails +6 -0
  187. data/spec/assets/rails328_ruby187_app/test/performance/browsing_test.rb +12 -0
  188. data/spec/assets/rails328_ruby187_app/test/test_helper.rb +13 -0
  189. data/spec/cf/cli/app/base_spec.rb +17 -0
  190. data/spec/cf/cli/app/delete_spec.rb +197 -0
  191. data/spec/cf/cli/app/env_spec.rb +261 -0
  192. data/spec/cf/cli/app/events_spec.rb +72 -0
  193. data/spec/cf/cli/app/help_spec.rb +39 -0
  194. data/spec/cf/cli/app/instances_spec.rb +69 -0
  195. data/spec/cf/cli/app/push/create_spec.rb +444 -0
  196. data/spec/cf/cli/app/push/interactions_spec.rb +32 -0
  197. data/spec/cf/cli/app/push_spec.rb +332 -0
  198. data/spec/cf/cli/app/rename_spec.rb +108 -0
  199. data/spec/cf/cli/app/restart_spec.rb +47 -0
  200. data/spec/cf/cli/app/scale_spec.rb +63 -0
  201. data/spec/cf/cli/app/start_spec.rb +255 -0
  202. data/spec/cf/cli/app/stats_spec.rb +66 -0
  203. data/spec/cf/cli/domain/help_spec.rb +39 -0
  204. data/spec/cf/cli/domain/map_spec.rb +140 -0
  205. data/spec/cf/cli/domain/unmap_spec.rb +77 -0
  206. data/spec/cf/cli/help_spec.rb +21 -0
  207. data/spec/cf/cli/organization/create_spec.rb +121 -0
  208. data/spec/cf/cli/organization/delete_spec.rb +105 -0
  209. data/spec/cf/cli/organization/help_spec.rb +39 -0
  210. data/spec/cf/cli/organization/orgs_spec.rb +116 -0
  211. data/spec/cf/cli/organization/rename_spec.rb +116 -0
  212. data/spec/cf/cli/populators/organization_spec.rb +179 -0
  213. data/spec/cf/cli/populators/space_spec.rb +156 -0
  214. data/spec/cf/cli/populators/target_spec.rb +39 -0
  215. data/spec/cf/cli/route/delete_spec.rb +92 -0
  216. data/spec/cf/cli/route/help_spec.rb +32 -0
  217. data/spec/cf/cli/route/map_spec.rb +148 -0
  218. data/spec/cf/cli/route/unmap_spec.rb +114 -0
  219. data/spec/cf/cli/service/bind_spec.rb +25 -0
  220. data/spec/cf/cli/service/create_spec.rb +147 -0
  221. data/spec/cf/cli/service/delete_spec.rb +22 -0
  222. data/spec/cf/cli/service/help_spec.rb +39 -0
  223. data/spec/cf/cli/service/rename_spec.rb +103 -0
  224. data/spec/cf/cli/service/service_helper_spec.rb +66 -0
  225. data/spec/cf/cli/service/service_instance_helper_spec.rb +155 -0
  226. data/spec/cf/cli/service/service_spec.rb +23 -0
  227. data/spec/cf/cli/service/services_spec.rb +156 -0
  228. data/spec/cf/cli/service/unbind_spec.rb +25 -0
  229. data/spec/cf/cli/space/base_spec.rb +49 -0
  230. data/spec/cf/cli/space/create_spec.rb +144 -0
  231. data/spec/cf/cli/space/delete_spec.rb +109 -0
  232. data/spec/cf/cli/space/help_spec.rb +39 -0
  233. data/spec/cf/cli/space/rename_spec.rb +110 -0
  234. data/spec/cf/cli/space/space_spec.rb +80 -0
  235. data/spec/cf/cli/space/spaces_spec.rb +107 -0
  236. data/spec/cf/cli/space/switch_space_spec.rb +57 -0
  237. data/spec/cf/cli/start/help_spec.rb +39 -0
  238. data/spec/cf/cli/start/login_spec.rb +142 -0
  239. data/spec/cf/cli/start/logout_spec.rb +49 -0
  240. data/spec/cf/cli/start/target_prettifier_spec.rb +78 -0
  241. data/spec/cf/cli/start/target_spec.rb +123 -0
  242. data/spec/cf/cli/user/create_spec.rb +98 -0
  243. data/spec/cf/cli/user/help_spec.rb +32 -0
  244. data/spec/cf/cli/user/passwd_spec.rb +94 -0
  245. data/spec/cf/cli/user/register_spec.rb +145 -0
  246. data/spec/cf/cli_spec.rb +474 -0
  247. data/spec/console/console_spec.rb +189 -0
  248. data/spec/factories/cfoundry/v2/apps_factory.rb +12 -0
  249. data/spec/factories/cfoundry/v2/clients_factory.rb +7 -0
  250. data/spec/factories/cfoundry/v2/domains_factory.rb +8 -0
  251. data/spec/factories/cfoundry/v2/managed_service_instances_factory.rb +13 -0
  252. data/spec/factories/cfoundry/v2/organizations_factory.rb +14 -0
  253. data/spec/factories/cfoundry/v2/quota_definitions.rb +13 -0
  254. data/spec/factories/cfoundry/v2/routes_factory.rb +8 -0
  255. data/spec/factories/cfoundry/v2/service_bindings_factory.rb +11 -0
  256. data/spec/factories/cfoundry/v2/service_brokers_factory.rb +11 -0
  257. data/spec/factories/cfoundry/v2/service_plans_factory.rb +17 -0
  258. data/spec/factories/cfoundry/v2/services_factory.rb +14 -0
  259. data/spec/factories/cfoundry/v2/spaces_factory.rb +13 -0
  260. data/spec/factories/cfoundry/v2/stacks_factory.rb +11 -0
  261. data/spec/factories/cfoundry/v2/user_provided_service_instances_factory.rb +12 -0
  262. data/spec/factories/cfoundry/v2/users_factory.rb +7 -0
  263. data/spec/features/backspace_spec.rb +46 -0
  264. data/spec/features/create_user_spec.rb +74 -0
  265. data/spec/features/delete_orphaned_service_spec.rb +64 -0
  266. data/spec/features/login_spec.rb +65 -0
  267. data/spec/features/manifests_spec.rb +86 -0
  268. data/spec/features/org_spec.rb +50 -0
  269. data/spec/features/push_flow_spec.rb +169 -0
  270. data/spec/features/service_brokers_spec.rb +173 -0
  271. data/spec/features/services_spec.rb +122 -0
  272. data/spec/features/space_spec.rb +107 -0
  273. data/spec/features/switching_targets_spec.rb +70 -0
  274. data/spec/manifests/errors_spec.rb +43 -0
  275. data/spec/manifests/loader/builder_spec.rb +80 -0
  276. data/spec/manifests/loader/normalizer_spec.rb +158 -0
  277. data/spec/manifests/manifests_spec.rb +335 -0
  278. data/spec/manifests/plugin_spec.rb +410 -0
  279. data/spec/micro/plugin_spec.rb +64 -0
  280. data/spec/spec_helper.rb +69 -0
  281. data/spec/support/cli_helper.rb +87 -0
  282. data/spec/support/config_helper.rb +15 -0
  283. data/spec/support/factory_girl.rb +6 -0
  284. data/spec/support/fake_home_dir.rb +55 -0
  285. data/spec/support/features_helper.rb +99 -0
  286. data/spec/support/interact_helper.rb +27 -0
  287. data/spec/support/matchers.rb +16 -0
  288. data/spec/support/mock_commands/mock_restart.rb +16 -0
  289. data/spec/support/mock_commands/mock_start.rb +17 -0
  290. data/spec/support/shared_examples/errors.rb +40 -0
  291. data/spec/support/shared_examples/input.rb +14 -0
  292. data/spec/tunnel/plugin_spec.rb +31 -0
  293. data/spec/tunnel/tunnel_spec.rb +54 -0
  294. metadata +814 -0
@@ -0,0 +1,16 @@
1
+ class MockRestartCommand
2
+ attr_reader :restarted_apps
3
+ attr_accessor :input
4
+
5
+ def initialize
6
+ @restarted_apps = []
7
+ end
8
+
9
+ def restart
10
+ @restarted_apps = input[:apps]
11
+ end
12
+
13
+ def run(_)
14
+ restart
15
+ end
16
+ end
@@ -0,0 +1,17 @@
1
+ class MockStartCommand
2
+ attr_reader :started_apps
3
+ attr_accessor :input
4
+
5
+ def initialize
6
+ @started_apps = []
7
+ end
8
+
9
+ def start
10
+ raise 'If you wanna test using :all, you implement it!' if input[:all]
11
+ @started_apps = input[:apps]
12
+ end
13
+
14
+ def run(_)
15
+ start
16
+ end
17
+ end
@@ -0,0 +1,40 @@
1
+ shared_examples_for "an error that's obvious to the user" do |options|
2
+ message = options[:with_message]
3
+
4
+ it "prints the message" do
5
+ subject
6
+ expect(stderr.string).to include message
7
+ end
8
+
9
+ it "sets the exit code to 1" do
10
+ context.should_receive(:exit_status).with(1)
11
+ subject
12
+ end
13
+
14
+ it "does not mention ~/.truck/crash" do
15
+ subject
16
+ expect(stderr.string).to_not include CF::CRASH_FILE
17
+ end
18
+ end
19
+
20
+ shared_examples_for "an error that gets passed through" do |options|
21
+ before do
22
+ described_class.class_eval do
23
+ alias_method :wrap_errors_original, :wrap_errors
24
+ def wrap_errors
25
+ yield
26
+ end
27
+ end
28
+ end
29
+
30
+ after do
31
+ described_class.class_eval do
32
+ remove_method :wrap_errors
33
+ alias_method :wrap_errors, :wrap_errors_original
34
+ end
35
+ end
36
+
37
+ it "reraises the error" do
38
+ expect { subject }.to raise_error(options[:with_exception], options[:with_message])
39
+ end
40
+ end
@@ -0,0 +1,14 @@
1
+ shared_examples_for 'inputs must have descriptions' do
2
+ describe 'inputs' do
3
+ subject { command.inputs }
4
+
5
+ it "is not missing any descriptions" do
6
+ subject.each do |_, attrs|
7
+ next if attrs[:hidden]
8
+
9
+ expect(attrs[:description]).to be
10
+ expect(attrs[:description].strip).to_not be_empty
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,31 @@
1
+ require "spec_helper"
2
+
3
+ describe CFTunnelPlugin::Tunnel do
4
+ describe "#tunnel_clients" do
5
+ context "when the user has a custom clients.yml in their cf directory" do
6
+ it "overrides the default client config with the user's customizations" do
7
+ CF::CONFIG_DIR = "#{SPEC_ROOT}/fixtures/fake_home_dirs/with_custom_clients/.truck"
8
+
9
+ expect(subject.tunnel_clients["postgresql"]).to eq({
10
+ "psql" => {
11
+ "command"=>"-h ${host} -p ${port} -d ${name} -U ${user} -w",
12
+ "environment" => ["PGPASSWORD='dont_ask_password'"]
13
+ }
14
+ })
15
+ end
16
+ end
17
+
18
+ context "when the user does not have a custom clients.yml" do
19
+ it "returns the default client config" do
20
+ subject.stub(:config_file_path) { File.expand_path("./.truck/#{CFTunnelPlugin::Tunnel::CLIENTS_FILE}") }
21
+
22
+ expect(subject.tunnel_clients["postgresql"]).to eq({
23
+ "psql" => {
24
+ "command"=>"-h ${host} -p ${port} -d ${name} -U ${user} -w",
25
+ "environment" => ["PGPASSWORD='${password}'"]
26
+ }
27
+ })
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,54 @@
1
+ require "spec_helper"
2
+
3
+ describe CFTunnel do
4
+ # temporary solution until we get rspec-mocks! ;)
5
+ class NullObject
6
+ def initialize(id = "")
7
+ @id = id
8
+ end
9
+
10
+ def ==(other)
11
+ @id == other.id
12
+ end
13
+
14
+ def <=>(other)
15
+ @id <=> other.id
16
+ end
17
+
18
+ def nil?
19
+ true
20
+ end
21
+
22
+ def method_missing(*args)
23
+ return self
24
+ end
25
+ end
26
+
27
+ let(:client) { build(:client) }
28
+ let(:service) { NullObject.new }
29
+
30
+ subject { CFTunnel.new(client, service) }
31
+
32
+ describe "#open!" do
33
+ describe "creating a route for caldecott" do
34
+ let!(:app) { NullObject.new("app") }
35
+ let!(:domain) { build(:domain, :owning_organization => nil) }
36
+ let!(:route) { build(:route) }
37
+ let!(:space) { build(:space) }
38
+ let(:host) { "caldecott" }
39
+
40
+ before do
41
+ subject.stub(:random_helper_url) { "caldecott" }
42
+ client.stub(:app) { app }
43
+ client.stub(:current_space) { space }
44
+ client.stub(:domains) { [build(:domain, :owning_organization => build(:organization)), domain] }
45
+ end
46
+
47
+ it "adds a new route to caldecott app" do
48
+ app.should_receive(:create_route).with(:domain => domain, :host => host, :space => space)
49
+
50
+ subject.send("push_helper", "this is a token")
51
+ end
52
+ end
53
+ end
54
+ end
metadata ADDED
@@ -0,0 +1,814 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: trucker-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - GiMiScale
8
+ - Nick den Engelsman
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-10-23 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: addressable
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ! '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ! '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ - !ruby/object:Gem::Dependency
29
+ name: caldecott-client
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: 0.0.2
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ~>
40
+ - !ruby/object:Gem::Version
41
+ version: 0.0.2
42
+ - !ruby/object:Gem::Dependency
43
+ name: cfoundry
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - ~>
47
+ - !ruby/object:Gem::Version
48
+ version: 4.5.1
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 4.5.1
56
+ - !ruby/object:Gem::Dependency
57
+ name: interact
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ! '>='
61
+ - !ruby/object:Gem::Version
62
+ version: '0.5'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0.5'
70
+ - !ruby/object:Gem::Dependency
71
+ name: json_pure
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: mothership
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: 0.5.1
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: 0.5.1
98
+ - !ruby/object:Gem::Dependency
99
+ name: multi_json
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ~>
103
+ - !ruby/object:Gem::Version
104
+ version: '1.3'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: '1.3'
112
+ - !ruby/object:Gem::Dependency
113
+ name: rest-client
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ~>
117
+ - !ruby/object:Gem::Version
118
+ version: '1.6'
119
+ type: :runtime
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: '1.6'
126
+ - !ruby/object:Gem::Dependency
127
+ name: uuidtools
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ~>
131
+ - !ruby/object:Gem::Version
132
+ version: '2.1'
133
+ type: :runtime
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ~>
138
+ - !ruby/object:Gem::Version
139
+ version: '2.1'
140
+ - !ruby/object:Gem::Dependency
141
+ name: anchorman
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ! '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ! '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ - !ruby/object:Gem::Dependency
155
+ name: blue-shell
156
+ requirement: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: 0.2.2
161
+ type: :development
162
+ prerelease: false
163
+ version_requirements: !ruby/object:Gem::Requirement
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: 0.2.2
168
+ - !ruby/object:Gem::Dependency
169
+ name: factory_girl
170
+ requirement: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ! '>='
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ type: :development
176
+ prerelease: false
177
+ version_requirements: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ - !ruby/object:Gem::Dependency
183
+ name: fakefs
184
+ requirement: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ~>
187
+ - !ruby/object:Gem::Version
188
+ version: 0.4.2
189
+ type: :development
190
+ prerelease: false
191
+ version_requirements: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ~>
194
+ - !ruby/object:Gem::Version
195
+ version: 0.4.2
196
+ - !ruby/object:Gem::Dependency
197
+ name: ffaker
198
+ requirement: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - '='
201
+ - !ruby/object:Gem::Version
202
+ version: '1.15'
203
+ type: :development
204
+ prerelease: false
205
+ version_requirements: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - '='
208
+ - !ruby/object:Gem::Version
209
+ version: '1.15'
210
+ - !ruby/object:Gem::Dependency
211
+ name: gem-release
212
+ requirement: !ruby/object:Gem::Requirement
213
+ requirements:
214
+ - - ! '>='
215
+ - !ruby/object:Gem::Version
216
+ version: '0'
217
+ type: :development
218
+ prerelease: false
219
+ version_requirements: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: ocra
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ! '>='
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ type: :development
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ - !ruby/object:Gem::Dependency
239
+ name: license_finder
240
+ requirement: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ! '>='
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ type: :development
246
+ prerelease: false
247
+ version_requirements: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - ! '>='
250
+ - !ruby/object:Gem::Version
251
+ version: '0'
252
+ - !ruby/object:Gem::Dependency
253
+ name: rake
254
+ requirement: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ~>
257
+ - !ruby/object:Gem::Version
258
+ version: '0.9'
259
+ type: :development
260
+ prerelease: false
261
+ version_requirements: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - ~>
264
+ - !ruby/object:Gem::Version
265
+ version: '0.9'
266
+ - !ruby/object:Gem::Dependency
267
+ name: rspec
268
+ requirement: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - ~>
271
+ - !ruby/object:Gem::Version
272
+ version: '2.14'
273
+ type: :development
274
+ prerelease: false
275
+ version_requirements: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ~>
278
+ - !ruby/object:Gem::Version
279
+ version: '2.14'
280
+ - !ruby/object:Gem::Dependency
281
+ name: rspec-instafail
282
+ requirement: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ~>
285
+ - !ruby/object:Gem::Version
286
+ version: 0.2.4
287
+ type: :development
288
+ prerelease: false
289
+ version_requirements: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ~>
292
+ - !ruby/object:Gem::Version
293
+ version: 0.2.4
294
+ - !ruby/object:Gem::Dependency
295
+ name: sinatra
296
+ requirement: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - ! '>='
299
+ - !ruby/object:Gem::Version
300
+ version: '0'
301
+ type: :development
302
+ prerelease: false
303
+ version_requirements: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - ! '>='
306
+ - !ruby/object:Gem::Version
307
+ version: '0'
308
+ - !ruby/object:Gem::Dependency
309
+ name: webmock
310
+ requirement: !ruby/object:Gem::Requirement
311
+ requirements:
312
+ - - ! '>='
313
+ - !ruby/object:Gem::Version
314
+ version: '0'
315
+ type: :development
316
+ prerelease: false
317
+ version_requirements: !ruby/object:Gem::Requirement
318
+ requirements:
319
+ - - ! '>='
320
+ - !ruby/object:Gem::Version
321
+ version: '0'
322
+ description:
323
+ email:
324
+ - devs@gimiscale.com
325
+ executables:
326
+ - truck
327
+ extensions: []
328
+ extra_rdoc_files: []
329
+ files:
330
+ - LICENSE
331
+ - Rakefile
332
+ - lib/admin/curl.rb
333
+ - lib/admin/guid.rb
334
+ - lib/admin/plugin.rb
335
+ - lib/admin/README.md
336
+ - lib/admin/service_auth_token.rb
337
+ - lib/admin/service_broker/add.rb
338
+ - lib/admin/service_broker/remove.rb
339
+ - lib/admin/service_broker/service_brokers.rb
340
+ - lib/admin/service_broker/update.rb
341
+ - lib/admin/set_quota.rb
342
+ - lib/cf/cli/app/app.rb
343
+ - lib/cf/cli/app/apps.rb
344
+ - lib/cf/cli/app/base.rb
345
+ - lib/cf/cli/app/delete.rb
346
+ - lib/cf/cli/app/deprecated.rb
347
+ - lib/cf/cli/app/env.rb
348
+ - lib/cf/cli/app/events.rb
349
+ - lib/cf/cli/app/files.rb
350
+ - lib/cf/cli/app/health.rb
351
+ - lib/cf/cli/app/instances.rb
352
+ - lib/cf/cli/app/logs.rb
353
+ - lib/cf/cli/app/push/create.rb
354
+ - lib/cf/cli/app/push/interactions.rb
355
+ - lib/cf/cli/app/push/sync.rb
356
+ - lib/cf/cli/app/push.rb
357
+ - lib/cf/cli/app/rename.rb
358
+ - lib/cf/cli/app/restart.rb
359
+ - lib/cf/cli/app/scale.rb
360
+ - lib/cf/cli/app/start.rb
361
+ - lib/cf/cli/app/stats.rb
362
+ - lib/cf/cli/app/stop.rb
363
+ - lib/cf/cli/domain/base.rb
364
+ - lib/cf/cli/domain/domains.rb
365
+ - lib/cf/cli/domain/map.rb
366
+ - lib/cf/cli/domain/unmap.rb
367
+ - lib/cf/cli/help.rb
368
+ - lib/cf/cli/interactive.rb
369
+ - lib/cf/cli/login_requirements.rb
370
+ - lib/cf/cli/organization/base.rb
371
+ - lib/cf/cli/organization/create.rb
372
+ - lib/cf/cli/organization/delete.rb
373
+ - lib/cf/cli/organization/org.rb
374
+ - lib/cf/cli/organization/orgs.rb
375
+ - lib/cf/cli/organization/rename.rb
376
+ - lib/cf/cli/populators/base.rb
377
+ - lib/cf/cli/populators/organization.rb
378
+ - lib/cf/cli/populators/populator_methods.rb
379
+ - lib/cf/cli/populators/space.rb
380
+ - lib/cf/cli/populators/target.rb
381
+ - lib/cf/cli/route/base.rb
382
+ - lib/cf/cli/route/delete.rb
383
+ - lib/cf/cli/route/map.rb
384
+ - lib/cf/cli/route/routes.rb
385
+ - lib/cf/cli/route/unmap.rb
386
+ - lib/cf/cli/service/base.rb
387
+ - lib/cf/cli/service/bind.rb
388
+ - lib/cf/cli/service/create.rb
389
+ - lib/cf/cli/service/delete.rb
390
+ - lib/cf/cli/service/rename.rb
391
+ - lib/cf/cli/service/service.rb
392
+ - lib/cf/cli/service/service_helper.rb
393
+ - lib/cf/cli/service/service_instance_helper.rb
394
+ - lib/cf/cli/service/services.rb
395
+ - lib/cf/cli/service/unbind.rb
396
+ - lib/cf/cli/space/base.rb
397
+ - lib/cf/cli/space/create.rb
398
+ - lib/cf/cli/space/delete.rb
399
+ - lib/cf/cli/space/rename.rb
400
+ - lib/cf/cli/space/space.rb
401
+ - lib/cf/cli/space/spaces.rb
402
+ - lib/cf/cli/space/switch.rb
403
+ - lib/cf/cli/start/base.rb
404
+ - lib/cf/cli/start/colors.rb
405
+ - lib/cf/cli/start/login.rb
406
+ - lib/cf/cli/start/logout.rb
407
+ - lib/cf/cli/start/target.rb
408
+ - lib/cf/cli/start/target_prettifier.rb
409
+ - lib/cf/cli/start/targets.rb
410
+ - lib/cf/cli/user/base.rb
411
+ - lib/cf/cli/user/create.rb
412
+ - lib/cf/cli/user/passwd.rb
413
+ - lib/cf/cli/user/register.rb
414
+ - lib/cf/cli/user/users.rb
415
+ - lib/cf/cli.rb
416
+ - lib/cf/constants.rb
417
+ - lib/cf/errors.rb
418
+ - lib/cf/plugin.rb
419
+ - lib/cf/spacing.rb
420
+ - lib/cf/spec_helper.rb
421
+ - lib/cf/test_support.rb
422
+ - lib/cf/version.rb
423
+ - lib/cf.rb
424
+ - lib/console/console.rb
425
+ - lib/console/plugin.rb
426
+ - lib/console/README.md
427
+ - lib/manifests/errors.rb
428
+ - lib/manifests/loader/builder.rb
429
+ - lib/manifests/loader/normalizer.rb
430
+ - lib/manifests/loader/resolver.rb
431
+ - lib/manifests/loader.rb
432
+ - lib/manifests/manifests.rb
433
+ - lib/manifests/plugin.rb
434
+ - lib/micro/errors.rb
435
+ - lib/micro/micro.rb
436
+ - lib/micro/plugin.rb
437
+ - lib/micro/README.md
438
+ - lib/micro/switcher/base.rb
439
+ - lib/micro/switcher/darwin.rb
440
+ - lib/micro/switcher/dummy.rb
441
+ - lib/micro/switcher/linux.rb
442
+ - lib/micro/switcher/windows.rb
443
+ - lib/micro/vmrun.rb
444
+ - lib/tasks/gem_release.rake
445
+ - lib/tasks/windows_build.rake
446
+ - lib/tunnel/config/clients.yml
447
+ - lib/tunnel/helper-app/Gemfile
448
+ - lib/tunnel/helper-app/Gemfile.lock
449
+ - lib/tunnel/helper-app/server.rb
450
+ - lib/tunnel/plugin.rb
451
+ - lib/tunnel/README.md
452
+ - lib/tunnel/tunnel.rb
453
+ - spec/admin/curl_spec.rb
454
+ - spec/admin/guid_spec.rb
455
+ - spec/admin/service_broker/add_spec.rb
456
+ - spec/admin/service_broker/remove_spec.rb
457
+ - spec/admin/service_broker/service_brokers_spec.rb
458
+ - spec/admin/service_broker/update_spec.rb
459
+ - spec/admin/set_quota_spec.rb
460
+ - spec/assets/env/env_test.rb
461
+ - spec/assets/env/Gemfile
462
+ - spec/assets/env/Gemfile.lock
463
+ - spec/assets/hello-sinatra/config.ru
464
+ - spec/assets/hello-sinatra/fat-cat-makes-app-larger.png
465
+ - spec/assets/hello-sinatra/Gemfile
466
+ - spec/assets/hello-sinatra/Gemfile.lock
467
+ - spec/assets/hello-sinatra/main.rb
468
+ - spec/assets/rails328_ruby187_app/app/assets/images/rails.png
469
+ - spec/assets/rails328_ruby187_app/app/assets/javascripts/application.js
470
+ - spec/assets/rails328_ruby187_app/app/assets/stylesheets/application.css
471
+ - spec/assets/rails328_ruby187_app/app/controllers/application_controller.rb
472
+ - spec/assets/rails328_ruby187_app/app/helpers/application_helper.rb
473
+ - spec/assets/rails328_ruby187_app/app/views/layouts/application.html.erb
474
+ - spec/assets/rails328_ruby187_app/config/application.rb
475
+ - spec/assets/rails328_ruby187_app/config/boot.rb
476
+ - spec/assets/rails328_ruby187_app/config/database.yml
477
+ - spec/assets/rails328_ruby187_app/config/environment.rb
478
+ - spec/assets/rails328_ruby187_app/config/environments/development.rb
479
+ - spec/assets/rails328_ruby187_app/config/environments/production.rb
480
+ - spec/assets/rails328_ruby187_app/config/environments/test.rb
481
+ - spec/assets/rails328_ruby187_app/config/initializers/backtrace_silencers.rb
482
+ - spec/assets/rails328_ruby187_app/config/initializers/inflections.rb
483
+ - spec/assets/rails328_ruby187_app/config/initializers/mime_types.rb
484
+ - spec/assets/rails328_ruby187_app/config/initializers/secret_token.rb
485
+ - spec/assets/rails328_ruby187_app/config/initializers/session_store.rb
486
+ - spec/assets/rails328_ruby187_app/config/initializers/wrap_parameters.rb
487
+ - spec/assets/rails328_ruby187_app/config/locales/en.yml
488
+ - spec/assets/rails328_ruby187_app/config/routes.rb
489
+ - spec/assets/rails328_ruby187_app/config.ru
490
+ - spec/assets/rails328_ruby187_app/db/seeds.rb
491
+ - spec/assets/rails328_ruby187_app/doc/README_FOR_APP
492
+ - spec/assets/rails328_ruby187_app/Gemfile
493
+ - spec/assets/rails328_ruby187_app/manifest.yml
494
+ - spec/assets/rails328_ruby187_app/public/404.html
495
+ - spec/assets/rails328_ruby187_app/public/422.html
496
+ - spec/assets/rails328_ruby187_app/public/500.html
497
+ - spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css
498
+ - spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css.gz
499
+ - spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js
500
+ - spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js.gz
501
+ - spec/assets/rails328_ruby187_app/public/assets/application.css
502
+ - spec/assets/rails328_ruby187_app/public/assets/application.css.gz
503
+ - spec/assets/rails328_ruby187_app/public/assets/application.js
504
+ - spec/assets/rails328_ruby187_app/public/assets/application.js.gz
505
+ - spec/assets/rails328_ruby187_app/public/assets/manifest.yml
506
+ - spec/assets/rails328_ruby187_app/public/assets/rails-be8732dac73d845ac5b142c8fb5f9fb0.png
507
+ - spec/assets/rails328_ruby187_app/public/assets/rails.png
508
+ - spec/assets/rails328_ruby187_app/public/favicon.ico
509
+ - spec/assets/rails328_ruby187_app/public/index.html
510
+ - spec/assets/rails328_ruby187_app/public/robots.txt
511
+ - spec/assets/rails328_ruby187_app/Rakefile
512
+ - spec/assets/rails328_ruby187_app/README.rdoc
513
+ - spec/assets/rails328_ruby187_app/script/rails
514
+ - spec/assets/rails328_ruby187_app/test/performance/browsing_test.rb
515
+ - spec/assets/rails328_ruby187_app/test/test_helper.rb
516
+ - spec/cf/cli/app/base_spec.rb
517
+ - spec/cf/cli/app/delete_spec.rb
518
+ - spec/cf/cli/app/env_spec.rb
519
+ - spec/cf/cli/app/events_spec.rb
520
+ - spec/cf/cli/app/help_spec.rb
521
+ - spec/cf/cli/app/instances_spec.rb
522
+ - spec/cf/cli/app/push/create_spec.rb
523
+ - spec/cf/cli/app/push/interactions_spec.rb
524
+ - spec/cf/cli/app/push_spec.rb
525
+ - spec/cf/cli/app/rename_spec.rb
526
+ - spec/cf/cli/app/restart_spec.rb
527
+ - spec/cf/cli/app/scale_spec.rb
528
+ - spec/cf/cli/app/start_spec.rb
529
+ - spec/cf/cli/app/stats_spec.rb
530
+ - spec/cf/cli/domain/help_spec.rb
531
+ - spec/cf/cli/domain/map_spec.rb
532
+ - spec/cf/cli/domain/unmap_spec.rb
533
+ - spec/cf/cli/help_spec.rb
534
+ - spec/cf/cli/organization/create_spec.rb
535
+ - spec/cf/cli/organization/delete_spec.rb
536
+ - spec/cf/cli/organization/help_spec.rb
537
+ - spec/cf/cli/organization/orgs_spec.rb
538
+ - spec/cf/cli/organization/rename_spec.rb
539
+ - spec/cf/cli/populators/organization_spec.rb
540
+ - spec/cf/cli/populators/space_spec.rb
541
+ - spec/cf/cli/populators/target_spec.rb
542
+ - spec/cf/cli/route/delete_spec.rb
543
+ - spec/cf/cli/route/help_spec.rb
544
+ - spec/cf/cli/route/map_spec.rb
545
+ - spec/cf/cli/route/unmap_spec.rb
546
+ - spec/cf/cli/service/bind_spec.rb
547
+ - spec/cf/cli/service/create_spec.rb
548
+ - spec/cf/cli/service/delete_spec.rb
549
+ - spec/cf/cli/service/help_spec.rb
550
+ - spec/cf/cli/service/rename_spec.rb
551
+ - spec/cf/cli/service/service_helper_spec.rb
552
+ - spec/cf/cli/service/service_instance_helper_spec.rb
553
+ - spec/cf/cli/service/service_spec.rb
554
+ - spec/cf/cli/service/services_spec.rb
555
+ - spec/cf/cli/service/unbind_spec.rb
556
+ - spec/cf/cli/space/base_spec.rb
557
+ - spec/cf/cli/space/create_spec.rb
558
+ - spec/cf/cli/space/delete_spec.rb
559
+ - spec/cf/cli/space/help_spec.rb
560
+ - spec/cf/cli/space/rename_spec.rb
561
+ - spec/cf/cli/space/space_spec.rb
562
+ - spec/cf/cli/space/spaces_spec.rb
563
+ - spec/cf/cli/space/switch_space_spec.rb
564
+ - spec/cf/cli/start/help_spec.rb
565
+ - spec/cf/cli/start/login_spec.rb
566
+ - spec/cf/cli/start/logout_spec.rb
567
+ - spec/cf/cli/start/target_prettifier_spec.rb
568
+ - spec/cf/cli/start/target_spec.rb
569
+ - spec/cf/cli/user/create_spec.rb
570
+ - spec/cf/cli/user/help_spec.rb
571
+ - spec/cf/cli/user/passwd_spec.rb
572
+ - spec/cf/cli/user/register_spec.rb
573
+ - spec/cf/cli_spec.rb
574
+ - spec/console/console_spec.rb
575
+ - spec/factories/cfoundry/v2/apps_factory.rb
576
+ - spec/factories/cfoundry/v2/clients_factory.rb
577
+ - spec/factories/cfoundry/v2/domains_factory.rb
578
+ - spec/factories/cfoundry/v2/managed_service_instances_factory.rb
579
+ - spec/factories/cfoundry/v2/organizations_factory.rb
580
+ - spec/factories/cfoundry/v2/quota_definitions.rb
581
+ - spec/factories/cfoundry/v2/routes_factory.rb
582
+ - spec/factories/cfoundry/v2/service_bindings_factory.rb
583
+ - spec/factories/cfoundry/v2/service_brokers_factory.rb
584
+ - spec/factories/cfoundry/v2/service_plans_factory.rb
585
+ - spec/factories/cfoundry/v2/services_factory.rb
586
+ - spec/factories/cfoundry/v2/spaces_factory.rb
587
+ - spec/factories/cfoundry/v2/stacks_factory.rb
588
+ - spec/factories/cfoundry/v2/user_provided_service_instances_factory.rb
589
+ - spec/factories/cfoundry/v2/users_factory.rb
590
+ - spec/features/backspace_spec.rb
591
+ - spec/features/create_user_spec.rb
592
+ - spec/features/delete_orphaned_service_spec.rb
593
+ - spec/features/login_spec.rb
594
+ - spec/features/manifests_spec.rb
595
+ - spec/features/org_spec.rb
596
+ - spec/features/push_flow_spec.rb
597
+ - spec/features/service_brokers_spec.rb
598
+ - spec/features/services_spec.rb
599
+ - spec/features/space_spec.rb
600
+ - spec/features/switching_targets_spec.rb
601
+ - spec/manifests/errors_spec.rb
602
+ - spec/manifests/loader/builder_spec.rb
603
+ - spec/manifests/loader/normalizer_spec.rb
604
+ - spec/manifests/manifests_spec.rb
605
+ - spec/manifests/plugin_spec.rb
606
+ - spec/micro/plugin_spec.rb
607
+ - spec/spec_helper.rb
608
+ - spec/support/cli_helper.rb
609
+ - spec/support/config_helper.rb
610
+ - spec/support/factory_girl.rb
611
+ - spec/support/fake_home_dir.rb
612
+ - spec/support/features_helper.rb
613
+ - spec/support/interact_helper.rb
614
+ - spec/support/matchers.rb
615
+ - spec/support/mock_commands/mock_restart.rb
616
+ - spec/support/mock_commands/mock_start.rb
617
+ - spec/support/shared_examples/errors.rb
618
+ - spec/support/shared_examples/input.rb
619
+ - spec/tunnel/plugin_spec.rb
620
+ - spec/tunnel/tunnel_spec.rb
621
+ - bin/truck
622
+ homepage: http://github.com/GiMiScale/trucker-cli
623
+ licenses:
624
+ - Apache 2.0
625
+ metadata: {}
626
+ post_install_message:
627
+ rdoc_options: []
628
+ require_paths:
629
+ - lib
630
+ required_ruby_version: !ruby/object:Gem::Requirement
631
+ requirements:
632
+ - - ! '>='
633
+ - !ruby/object:Gem::Version
634
+ version: '0'
635
+ required_rubygems_version: !ruby/object:Gem::Requirement
636
+ requirements:
637
+ - - ! '>='
638
+ - !ruby/object:Gem::Version
639
+ version: '0'
640
+ requirements: []
641
+ rubyforge_project: trucker-cli
642
+ rubygems_version: 2.1.9
643
+ signing_key:
644
+ specification_version: 4
645
+ summary: Friendly command-line interface for Trucker.io based on the cf gem.
646
+ test_files:
647
+ - spec/admin/curl_spec.rb
648
+ - spec/admin/guid_spec.rb
649
+ - spec/admin/service_broker/add_spec.rb
650
+ - spec/admin/service_broker/remove_spec.rb
651
+ - spec/admin/service_broker/service_brokers_spec.rb
652
+ - spec/admin/service_broker/update_spec.rb
653
+ - spec/admin/set_quota_spec.rb
654
+ - spec/assets/env/env_test.rb
655
+ - spec/assets/env/Gemfile
656
+ - spec/assets/env/Gemfile.lock
657
+ - spec/assets/hello-sinatra/config.ru
658
+ - spec/assets/hello-sinatra/fat-cat-makes-app-larger.png
659
+ - spec/assets/hello-sinatra/Gemfile
660
+ - spec/assets/hello-sinatra/Gemfile.lock
661
+ - spec/assets/hello-sinatra/main.rb
662
+ - spec/assets/rails328_ruby187_app/app/assets/images/rails.png
663
+ - spec/assets/rails328_ruby187_app/app/assets/javascripts/application.js
664
+ - spec/assets/rails328_ruby187_app/app/assets/stylesheets/application.css
665
+ - spec/assets/rails328_ruby187_app/app/controllers/application_controller.rb
666
+ - spec/assets/rails328_ruby187_app/app/helpers/application_helper.rb
667
+ - spec/assets/rails328_ruby187_app/app/views/layouts/application.html.erb
668
+ - spec/assets/rails328_ruby187_app/config/application.rb
669
+ - spec/assets/rails328_ruby187_app/config/boot.rb
670
+ - spec/assets/rails328_ruby187_app/config/database.yml
671
+ - spec/assets/rails328_ruby187_app/config/environment.rb
672
+ - spec/assets/rails328_ruby187_app/config/environments/development.rb
673
+ - spec/assets/rails328_ruby187_app/config/environments/production.rb
674
+ - spec/assets/rails328_ruby187_app/config/environments/test.rb
675
+ - spec/assets/rails328_ruby187_app/config/initializers/backtrace_silencers.rb
676
+ - spec/assets/rails328_ruby187_app/config/initializers/inflections.rb
677
+ - spec/assets/rails328_ruby187_app/config/initializers/mime_types.rb
678
+ - spec/assets/rails328_ruby187_app/config/initializers/secret_token.rb
679
+ - spec/assets/rails328_ruby187_app/config/initializers/session_store.rb
680
+ - spec/assets/rails328_ruby187_app/config/initializers/wrap_parameters.rb
681
+ - spec/assets/rails328_ruby187_app/config/locales/en.yml
682
+ - spec/assets/rails328_ruby187_app/config/routes.rb
683
+ - spec/assets/rails328_ruby187_app/config.ru
684
+ - spec/assets/rails328_ruby187_app/db/seeds.rb
685
+ - spec/assets/rails328_ruby187_app/doc/README_FOR_APP
686
+ - spec/assets/rails328_ruby187_app/Gemfile
687
+ - spec/assets/rails328_ruby187_app/manifest.yml
688
+ - spec/assets/rails328_ruby187_app/public/404.html
689
+ - spec/assets/rails328_ruby187_app/public/422.html
690
+ - spec/assets/rails328_ruby187_app/public/500.html
691
+ - spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css
692
+ - spec/assets/rails328_ruby187_app/public/assets/application-7270767b2a9e9fff880aa5de378ca791.css.gz
693
+ - spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js
694
+ - spec/assets/rails328_ruby187_app/public/assets/application-ccab98dc1abdf097c0af693e20aed861.js.gz
695
+ - spec/assets/rails328_ruby187_app/public/assets/application.css
696
+ - spec/assets/rails328_ruby187_app/public/assets/application.css.gz
697
+ - spec/assets/rails328_ruby187_app/public/assets/application.js
698
+ - spec/assets/rails328_ruby187_app/public/assets/application.js.gz
699
+ - spec/assets/rails328_ruby187_app/public/assets/manifest.yml
700
+ - spec/assets/rails328_ruby187_app/public/assets/rails-be8732dac73d845ac5b142c8fb5f9fb0.png
701
+ - spec/assets/rails328_ruby187_app/public/assets/rails.png
702
+ - spec/assets/rails328_ruby187_app/public/favicon.ico
703
+ - spec/assets/rails328_ruby187_app/public/index.html
704
+ - spec/assets/rails328_ruby187_app/public/robots.txt
705
+ - spec/assets/rails328_ruby187_app/Rakefile
706
+ - spec/assets/rails328_ruby187_app/README.rdoc
707
+ - spec/assets/rails328_ruby187_app/script/rails
708
+ - spec/assets/rails328_ruby187_app/test/performance/browsing_test.rb
709
+ - spec/assets/rails328_ruby187_app/test/test_helper.rb
710
+ - spec/cf/cli/app/base_spec.rb
711
+ - spec/cf/cli/app/delete_spec.rb
712
+ - spec/cf/cli/app/env_spec.rb
713
+ - spec/cf/cli/app/events_spec.rb
714
+ - spec/cf/cli/app/help_spec.rb
715
+ - spec/cf/cli/app/instances_spec.rb
716
+ - spec/cf/cli/app/push/create_spec.rb
717
+ - spec/cf/cli/app/push/interactions_spec.rb
718
+ - spec/cf/cli/app/push_spec.rb
719
+ - spec/cf/cli/app/rename_spec.rb
720
+ - spec/cf/cli/app/restart_spec.rb
721
+ - spec/cf/cli/app/scale_spec.rb
722
+ - spec/cf/cli/app/start_spec.rb
723
+ - spec/cf/cli/app/stats_spec.rb
724
+ - spec/cf/cli/domain/help_spec.rb
725
+ - spec/cf/cli/domain/map_spec.rb
726
+ - spec/cf/cli/domain/unmap_spec.rb
727
+ - spec/cf/cli/help_spec.rb
728
+ - spec/cf/cli/organization/create_spec.rb
729
+ - spec/cf/cli/organization/delete_spec.rb
730
+ - spec/cf/cli/organization/help_spec.rb
731
+ - spec/cf/cli/organization/orgs_spec.rb
732
+ - spec/cf/cli/organization/rename_spec.rb
733
+ - spec/cf/cli/populators/organization_spec.rb
734
+ - spec/cf/cli/populators/space_spec.rb
735
+ - spec/cf/cli/populators/target_spec.rb
736
+ - spec/cf/cli/route/delete_spec.rb
737
+ - spec/cf/cli/route/help_spec.rb
738
+ - spec/cf/cli/route/map_spec.rb
739
+ - spec/cf/cli/route/unmap_spec.rb
740
+ - spec/cf/cli/service/bind_spec.rb
741
+ - spec/cf/cli/service/create_spec.rb
742
+ - spec/cf/cli/service/delete_spec.rb
743
+ - spec/cf/cli/service/help_spec.rb
744
+ - spec/cf/cli/service/rename_spec.rb
745
+ - spec/cf/cli/service/service_helper_spec.rb
746
+ - spec/cf/cli/service/service_instance_helper_spec.rb
747
+ - spec/cf/cli/service/service_spec.rb
748
+ - spec/cf/cli/service/services_spec.rb
749
+ - spec/cf/cli/service/unbind_spec.rb
750
+ - spec/cf/cli/space/base_spec.rb
751
+ - spec/cf/cli/space/create_spec.rb
752
+ - spec/cf/cli/space/delete_spec.rb
753
+ - spec/cf/cli/space/help_spec.rb
754
+ - spec/cf/cli/space/rename_spec.rb
755
+ - spec/cf/cli/space/space_spec.rb
756
+ - spec/cf/cli/space/spaces_spec.rb
757
+ - spec/cf/cli/space/switch_space_spec.rb
758
+ - spec/cf/cli/start/help_spec.rb
759
+ - spec/cf/cli/start/login_spec.rb
760
+ - spec/cf/cli/start/logout_spec.rb
761
+ - spec/cf/cli/start/target_prettifier_spec.rb
762
+ - spec/cf/cli/start/target_spec.rb
763
+ - spec/cf/cli/user/create_spec.rb
764
+ - spec/cf/cli/user/help_spec.rb
765
+ - spec/cf/cli/user/passwd_spec.rb
766
+ - spec/cf/cli/user/register_spec.rb
767
+ - spec/cf/cli_spec.rb
768
+ - spec/console/console_spec.rb
769
+ - spec/factories/cfoundry/v2/apps_factory.rb
770
+ - spec/factories/cfoundry/v2/clients_factory.rb
771
+ - spec/factories/cfoundry/v2/domains_factory.rb
772
+ - spec/factories/cfoundry/v2/managed_service_instances_factory.rb
773
+ - spec/factories/cfoundry/v2/organizations_factory.rb
774
+ - spec/factories/cfoundry/v2/quota_definitions.rb
775
+ - spec/factories/cfoundry/v2/routes_factory.rb
776
+ - spec/factories/cfoundry/v2/service_bindings_factory.rb
777
+ - spec/factories/cfoundry/v2/service_brokers_factory.rb
778
+ - spec/factories/cfoundry/v2/service_plans_factory.rb
779
+ - spec/factories/cfoundry/v2/services_factory.rb
780
+ - spec/factories/cfoundry/v2/spaces_factory.rb
781
+ - spec/factories/cfoundry/v2/stacks_factory.rb
782
+ - spec/factories/cfoundry/v2/user_provided_service_instances_factory.rb
783
+ - spec/factories/cfoundry/v2/users_factory.rb
784
+ - spec/features/backspace_spec.rb
785
+ - spec/features/create_user_spec.rb
786
+ - spec/features/delete_orphaned_service_spec.rb
787
+ - spec/features/login_spec.rb
788
+ - spec/features/manifests_spec.rb
789
+ - spec/features/org_spec.rb
790
+ - spec/features/push_flow_spec.rb
791
+ - spec/features/service_brokers_spec.rb
792
+ - spec/features/services_spec.rb
793
+ - spec/features/space_spec.rb
794
+ - spec/features/switching_targets_spec.rb
795
+ - spec/manifests/errors_spec.rb
796
+ - spec/manifests/loader/builder_spec.rb
797
+ - spec/manifests/loader/normalizer_spec.rb
798
+ - spec/manifests/manifests_spec.rb
799
+ - spec/manifests/plugin_spec.rb
800
+ - spec/micro/plugin_spec.rb
801
+ - spec/spec_helper.rb
802
+ - spec/support/cli_helper.rb
803
+ - spec/support/config_helper.rb
804
+ - spec/support/factory_girl.rb
805
+ - spec/support/fake_home_dir.rb
806
+ - spec/support/features_helper.rb
807
+ - spec/support/interact_helper.rb
808
+ - spec/support/matchers.rb
809
+ - spec/support/mock_commands/mock_restart.rb
810
+ - spec/support/mock_commands/mock_start.rb
811
+ - spec/support/shared_examples/errors.rb
812
+ - spec/support/shared_examples/input.rb
813
+ - spec/tunnel/plugin_spec.rb
814
+ - spec/tunnel/tunnel_spec.rb