derelict_m 0.6.2a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +7 -0
  2. data/.cane +2 -0
  3. data/.coveralls.yml +1 -0
  4. data/.gitignore +18 -0
  5. data/.travis.yml +16 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +99 -0
  9. data/Rakefile +22 -0
  10. data/derelict.gemspec +63 -0
  11. data/lib/derelict.rb +74 -0
  12. data/lib/derelict/box.rb +29 -0
  13. data/lib/derelict/box/manager.rb +111 -0
  14. data/lib/derelict/box/not_found.rb +16 -0
  15. data/lib/derelict/connection.rb +84 -0
  16. data/lib/derelict/connection/invalid.rb +14 -0
  17. data/lib/derelict/connection/not_found.rb +13 -0
  18. data/lib/derelict/exception.rb +6 -0
  19. data/lib/derelict/exception/optional_reason.rb +32 -0
  20. data/lib/derelict/executer.rb +237 -0
  21. data/lib/derelict/instance.rb +147 -0
  22. data/lib/derelict/instance/command_failed.rb +30 -0
  23. data/lib/derelict/instance/invalid.rb +14 -0
  24. data/lib/derelict/instance/missing_binary.rb +13 -0
  25. data/lib/derelict/instance/non_directory.rb +13 -0
  26. data/lib/derelict/instance/not_found.rb +13 -0
  27. data/lib/derelict/parser.rb +27 -0
  28. data/lib/derelict/parser/box_list.rb +53 -0
  29. data/lib/derelict/parser/box_list/invalid_format.rb +16 -0
  30. data/lib/derelict/parser/plugin_list.rb +63 -0
  31. data/lib/derelict/parser/plugin_list/invalid_format.rb +16 -0
  32. data/lib/derelict/parser/plugin_list/needs_reinstall.rb +22 -0
  33. data/lib/derelict/parser/status.rb +90 -0
  34. data/lib/derelict/parser/status/invalid_format.rb +16 -0
  35. data/lib/derelict/parser/version.rb +28 -0
  36. data/lib/derelict/parser/version/invalid_format.rb +16 -0
  37. data/lib/derelict/plugin.rb +29 -0
  38. data/lib/derelict/plugin/manager.rb +107 -0
  39. data/lib/derelict/plugin/not_found.rb +14 -0
  40. data/lib/derelict/utils.rb +11 -0
  41. data/lib/derelict/utils/logger.rb +59 -0
  42. data/lib/derelict/utils/logger/array_outputter.rb +43 -0
  43. data/lib/derelict/utils/logger/invalid_type.rb +15 -0
  44. data/lib/derelict/utils/logger/raw_formatter.rb +12 -0
  45. data/lib/derelict/version.rb +3 -0
  46. data/lib/derelict/virtual_machine.rb +190 -0
  47. data/lib/derelict/virtual_machine/invalid.rb +14 -0
  48. data/lib/derelict/virtual_machine/not_found.rb +18 -0
  49. data/spec/coverage_helper.rb +19 -0
  50. data/spec/derelict/box/manager_spec.rb +171 -0
  51. data/spec/derelict/box/not_found_spec.rb +13 -0
  52. data/spec/derelict/box_spec.rb +37 -0
  53. data/spec/derelict/connection/invalid_spec.rb +16 -0
  54. data/spec/derelict/connection/not_found_spec.rb +13 -0
  55. data/spec/derelict/connection_spec.rb +107 -0
  56. data/spec/derelict/exception/optional_reason_spec.rb +41 -0
  57. data/spec/derelict/exception_spec.rb +11 -0
  58. data/spec/derelict/executer_spec.rb +129 -0
  59. data/spec/derelict/instance/command_failed_spec.rb +40 -0
  60. data/spec/derelict/instance/invalid_spec.rb +16 -0
  61. data/spec/derelict/instance/missing_binary_spec.rb +13 -0
  62. data/spec/derelict/instance/non_directory_spec.rb +13 -0
  63. data/spec/derelict/instance/not_found_spec.rb +13 -0
  64. data/spec/derelict/instance_spec.rb +258 -0
  65. data/spec/derelict/parser/box_list/invalid_format_spec.rb +16 -0
  66. data/spec/derelict/parser/box_list_spec.rb +64 -0
  67. data/spec/derelict/parser/plugin_list/invalid_format_spec.rb +16 -0
  68. data/spec/derelict/parser/plugin_list/needs_reinstall_spec.rb +13 -0
  69. data/spec/derelict/parser/plugin_list_spec.rb +82 -0
  70. data/spec/derelict/parser/status/invalid_format_spec.rb +16 -0
  71. data/spec/derelict/parser/status_spec.rb +214 -0
  72. data/spec/derelict/parser/version/invalid_format_spec.rb +16 -0
  73. data/spec/derelict/parser/version_spec.rb +42 -0
  74. data/spec/derelict/parser_spec.rb +24 -0
  75. data/spec/derelict/plugin/manager_spec.rb +208 -0
  76. data/spec/derelict/plugin/not_found_spec.rb +13 -0
  77. data/spec/derelict/plugin_spec.rb +37 -0
  78. data/spec/derelict/utils/logger/array_outputter_spec.rb +40 -0
  79. data/spec/derelict/utils/logger/invalid_type_spec.rb +13 -0
  80. data/spec/derelict/utils/logger/raw_formatter_spec.rb +17 -0
  81. data/spec/derelict/utils/logger_spec.rb +35 -0
  82. data/spec/derelict/virtual_machine/invalid_spec.rb +16 -0
  83. data/spec/derelict/virtual_machine/not_found_spec.rb +34 -0
  84. data/spec/derelict/virtual_machine_spec.rb +356 -0
  85. data/spec/derelict_spec.rb +50 -0
  86. data/spec/spec_helper.rb +32 -0
  87. data/spec/support/log_context.rb +36 -0
  88. metadata +332 -0
metadata ADDED
@@ -0,0 +1,332 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: derelict_m
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.6.2a
5
+ platform: ruby
6
+ authors:
7
+ - Brad Feehan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-04-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: log4r
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.0
20
+ - - "!="
21
+ - !ruby/object:Gem::Version
22
+ version: 1.1.11
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: 1.1.0
30
+ - - "!="
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.11
33
+ - !ruby/object:Gem::Dependency
34
+ name: memoist
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ type: :runtime
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: open4
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: bundler
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.3'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.3'
75
+ - !ruby/object:Gem::Dependency
76
+ name: cane
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: coveralls
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ - !ruby/object:Gem::Dependency
104
+ name: rake
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "<"
108
+ - !ruby/object:Gem::Version
109
+ version: '11.0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "<"
115
+ - !ruby/object:Gem::Version
116
+ version: '11.0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "<"
122
+ - !ruby/object:Gem::Version
123
+ version: '3.0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.0'
131
+ - !ruby/object:Gem::Dependency
132
+ name: simplecov
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '0'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: '0'
145
+ - !ruby/object:Gem::Dependency
146
+ name: its
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ - !ruby/object:Gem::Dependency
160
+ name: mime-types
161
+ requirement: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - "<"
164
+ - !ruby/object:Gem::Version
165
+ version: '2.0'
166
+ type: :development
167
+ prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ requirements:
170
+ - - "<"
171
+ - !ruby/object:Gem::Version
172
+ version: '2.0'
173
+ description: |-
174
+ Provides a Ruby API to control Vagrant where Vagrant is installed via the Installer package on Mac OS X.
175
+
176
+ Vagrant was historically available as a gem, naturally providing a Ruby API to control Vagrant in other Ruby libraries and applications. However, since version 1.1.0, Vagrant is distributed exclusively using an Installer package. To control Vagrant when it's installed this way, other Ruby libraries and applications typically need to invoke the Vagrant binary, which requires forking a new process and parsing its output using string manipulation.
177
+ email:
178
+ - git@bradfeehan.com
179
+ executables: []
180
+ extensions: []
181
+ extra_rdoc_files: []
182
+ files:
183
+ - ".cane"
184
+ - ".coveralls.yml"
185
+ - ".gitignore"
186
+ - ".travis.yml"
187
+ - Gemfile
188
+ - LICENSE.txt
189
+ - README.md
190
+ - Rakefile
191
+ - derelict.gemspec
192
+ - lib/derelict.rb
193
+ - lib/derelict/box.rb
194
+ - lib/derelict/box/manager.rb
195
+ - lib/derelict/box/not_found.rb
196
+ - lib/derelict/connection.rb
197
+ - lib/derelict/connection/invalid.rb
198
+ - lib/derelict/connection/not_found.rb
199
+ - lib/derelict/exception.rb
200
+ - lib/derelict/exception/optional_reason.rb
201
+ - lib/derelict/executer.rb
202
+ - lib/derelict/instance.rb
203
+ - lib/derelict/instance/command_failed.rb
204
+ - lib/derelict/instance/invalid.rb
205
+ - lib/derelict/instance/missing_binary.rb
206
+ - lib/derelict/instance/non_directory.rb
207
+ - lib/derelict/instance/not_found.rb
208
+ - lib/derelict/parser.rb
209
+ - lib/derelict/parser/box_list.rb
210
+ - lib/derelict/parser/box_list/invalid_format.rb
211
+ - lib/derelict/parser/plugin_list.rb
212
+ - lib/derelict/parser/plugin_list/invalid_format.rb
213
+ - lib/derelict/parser/plugin_list/needs_reinstall.rb
214
+ - lib/derelict/parser/status.rb
215
+ - lib/derelict/parser/status/invalid_format.rb
216
+ - lib/derelict/parser/version.rb
217
+ - lib/derelict/parser/version/invalid_format.rb
218
+ - lib/derelict/plugin.rb
219
+ - lib/derelict/plugin/manager.rb
220
+ - lib/derelict/plugin/not_found.rb
221
+ - lib/derelict/utils.rb
222
+ - lib/derelict/utils/logger.rb
223
+ - lib/derelict/utils/logger/array_outputter.rb
224
+ - lib/derelict/utils/logger/invalid_type.rb
225
+ - lib/derelict/utils/logger/raw_formatter.rb
226
+ - lib/derelict/version.rb
227
+ - lib/derelict/virtual_machine.rb
228
+ - lib/derelict/virtual_machine/invalid.rb
229
+ - lib/derelict/virtual_machine/not_found.rb
230
+ - spec/coverage_helper.rb
231
+ - spec/derelict/box/manager_spec.rb
232
+ - spec/derelict/box/not_found_spec.rb
233
+ - spec/derelict/box_spec.rb
234
+ - spec/derelict/connection/invalid_spec.rb
235
+ - spec/derelict/connection/not_found_spec.rb
236
+ - spec/derelict/connection_spec.rb
237
+ - spec/derelict/exception/optional_reason_spec.rb
238
+ - spec/derelict/exception_spec.rb
239
+ - spec/derelict/executer_spec.rb
240
+ - spec/derelict/instance/command_failed_spec.rb
241
+ - spec/derelict/instance/invalid_spec.rb
242
+ - spec/derelict/instance/missing_binary_spec.rb
243
+ - spec/derelict/instance/non_directory_spec.rb
244
+ - spec/derelict/instance/not_found_spec.rb
245
+ - spec/derelict/instance_spec.rb
246
+ - spec/derelict/parser/box_list/invalid_format_spec.rb
247
+ - spec/derelict/parser/box_list_spec.rb
248
+ - spec/derelict/parser/plugin_list/invalid_format_spec.rb
249
+ - spec/derelict/parser/plugin_list/needs_reinstall_spec.rb
250
+ - spec/derelict/parser/plugin_list_spec.rb
251
+ - spec/derelict/parser/status/invalid_format_spec.rb
252
+ - spec/derelict/parser/status_spec.rb
253
+ - spec/derelict/parser/version/invalid_format_spec.rb
254
+ - spec/derelict/parser/version_spec.rb
255
+ - spec/derelict/parser_spec.rb
256
+ - spec/derelict/plugin/manager_spec.rb
257
+ - spec/derelict/plugin/not_found_spec.rb
258
+ - spec/derelict/plugin_spec.rb
259
+ - spec/derelict/utils/logger/array_outputter_spec.rb
260
+ - spec/derelict/utils/logger/invalid_type_spec.rb
261
+ - spec/derelict/utils/logger/raw_formatter_spec.rb
262
+ - spec/derelict/utils/logger_spec.rb
263
+ - spec/derelict/virtual_machine/invalid_spec.rb
264
+ - spec/derelict/virtual_machine/not_found_spec.rb
265
+ - spec/derelict/virtual_machine_spec.rb
266
+ - spec/derelict_spec.rb
267
+ - spec/spec_helper.rb
268
+ - spec/support/log_context.rb
269
+ homepage: https://github.com/bradfeehan/derelict
270
+ licenses:
271
+ - MIT
272
+ metadata: {}
273
+ post_install_message:
274
+ rdoc_options: []
275
+ require_paths:
276
+ - lib
277
+ required_ruby_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ required_rubygems_version: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ">"
285
+ - !ruby/object:Gem::Version
286
+ version: 1.3.1
287
+ requirements: []
288
+ rubyforge_project:
289
+ rubygems_version: 2.5.2
290
+ signing_key:
291
+ specification_version: 4
292
+ summary: Ruby API for Vagrant installed via Installer package on Mac OS X.
293
+ test_files:
294
+ - spec/coverage_helper.rb
295
+ - spec/derelict/box/manager_spec.rb
296
+ - spec/derelict/box/not_found_spec.rb
297
+ - spec/derelict/box_spec.rb
298
+ - spec/derelict/connection/invalid_spec.rb
299
+ - spec/derelict/connection/not_found_spec.rb
300
+ - spec/derelict/connection_spec.rb
301
+ - spec/derelict/exception/optional_reason_spec.rb
302
+ - spec/derelict/exception_spec.rb
303
+ - spec/derelict/executer_spec.rb
304
+ - spec/derelict/instance/command_failed_spec.rb
305
+ - spec/derelict/instance/invalid_spec.rb
306
+ - spec/derelict/instance/missing_binary_spec.rb
307
+ - spec/derelict/instance/non_directory_spec.rb
308
+ - spec/derelict/instance/not_found_spec.rb
309
+ - spec/derelict/instance_spec.rb
310
+ - spec/derelict/parser/box_list/invalid_format_spec.rb
311
+ - spec/derelict/parser/box_list_spec.rb
312
+ - spec/derelict/parser/plugin_list/invalid_format_spec.rb
313
+ - spec/derelict/parser/plugin_list/needs_reinstall_spec.rb
314
+ - spec/derelict/parser/plugin_list_spec.rb
315
+ - spec/derelict/parser/status/invalid_format_spec.rb
316
+ - spec/derelict/parser/status_spec.rb
317
+ - spec/derelict/parser/version/invalid_format_spec.rb
318
+ - spec/derelict/parser/version_spec.rb
319
+ - spec/derelict/parser_spec.rb
320
+ - spec/derelict/plugin/manager_spec.rb
321
+ - spec/derelict/plugin/not_found_spec.rb
322
+ - spec/derelict/plugin_spec.rb
323
+ - spec/derelict/utils/logger/array_outputter_spec.rb
324
+ - spec/derelict/utils/logger/invalid_type_spec.rb
325
+ - spec/derelict/utils/logger/raw_formatter_spec.rb
326
+ - spec/derelict/utils/logger_spec.rb
327
+ - spec/derelict/virtual_machine/invalid_spec.rb
328
+ - spec/derelict/virtual_machine/not_found_spec.rb
329
+ - spec/derelict/virtual_machine_spec.rb
330
+ - spec/derelict_spec.rb
331
+ - spec/spec_helper.rb
332
+ - spec/support/log_context.rb