vagrant-skytap 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ module VagrantPlugins
16
16
 
17
17
  class << self
18
18
  def fetch(env, url)
19
+ raise Errors::BadVmUrl, url: url unless url =~ /\/vms\/\d+/
19
20
  resp = env[:api_client].get(url)
20
21
  new(JSON.load(resp.body), env[:environment], env)
21
22
  end
@@ -27,6 +27,10 @@ module VagrantPlugins
27
27
  error_key(:does_not_exist)
28
28
  end
29
29
 
30
+ class BadVmUrl < VagrantSkytapError
31
+ error_key(:bad_vm_url)
32
+ end
33
+
30
34
  class ResourceBusy < VagrantSkytapError
31
35
  error_key(:resource_busy)
32
36
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Skytap
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
data/locales/en.yml CHANGED
@@ -98,6 +98,9 @@ en:
98
98
  There were no available options for connecting to the VM.
99
99
  Currently, the provider supports connections over VPN only.
100
100
 
101
+ bad_vm_url: |-
102
+ The specified vm_url was invalid: %{url}
103
+
101
104
  states:
102
105
  short_not_created: |-
103
106
  not created
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-skytap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Astete
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-05 00:00:00.000000000 Z
11
+ date: 2015-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_pure
@@ -118,9 +118,9 @@ files:
118
118
  - ".hgignore"
119
119
  - ".project"
120
120
  - ".rspec"
121
+ - 1-2.diff
121
122
  - CHANGELOG.md
122
123
  - Gemfile
123
- - Gemfile.lock.works
124
124
  - LICENSE
125
125
  - README.md
126
126
  - Rakefile
data/Gemfile.lock.works DELETED
@@ -1,149 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- vagrant-skytap (0.1.3)
5
- json_pure
6
-
7
- PATH
8
- remote: ../vagrant
9
- specs:
10
- vagrant (1.7.4)
11
- bundler (>= 1.5.2, <= 1.10.5)
12
- childprocess (~> 0.5.0)
13
- erubis (~> 2.7.0)
14
- hashicorp-checkpoint (~> 0.1.1)
15
- i18n (>= 0.6.0, <= 0.8.0)
16
- listen (~> 3.0.2)
17
- log4r (~> 1.1.9, < 1.1.11)
18
- net-scp (~> 1.1.0)
19
- net-sftp (~> 2.1)
20
- net-ssh (>= 2.6.6, < 2.10.0)
21
- nokogiri (= 1.6.3.1)
22
- rb-kqueue (~> 0.2.0)
23
- rest-client (>= 1.6.0, < 2.0)
24
- wdm (~> 0.1.0)
25
- winrm (~> 1.3)
26
- winrm-fs (~> 0.2.0)
27
-
28
- PATH
29
- remote: ../vagrant-spec
30
- specs:
31
- vagrant-spec (0.0.1)
32
- childprocess (~> 0.5.0)
33
- log4r (~> 1.1.9)
34
- rspec (~> 2.14)
35
- thor (~> 0.18.1)
36
-
37
- GEM
38
- remote: https://rubygems.org/
39
- specs:
40
- addressable (2.3.8)
41
- awesome_print (1.6.1)
42
- builder (3.2.2)
43
- byebug (6.0.2)
44
- childprocess (0.5.6)
45
- ffi (~> 1.0, >= 1.0.11)
46
- coderay (1.1.0)
47
- crack (0.4.2)
48
- safe_yaml (~> 1.0.0)
49
- diff-lcs (1.2.5)
50
- domain_name (0.5.25)
51
- unf (>= 0.0.5, < 1.0.0)
52
- erubis (2.7.0)
53
- ffi (1.9.10)
54
- gssapi (1.2.0)
55
- ffi (>= 1.0.1)
56
- gyoku (1.3.1)
57
- builder (>= 2.1.2)
58
- hashicorp-checkpoint (0.1.4)
59
- http-cookie (1.0.2)
60
- domain_name (~> 0.5)
61
- httpclient (2.6.0.1)
62
- i18n (0.7.0)
63
- json_pure (1.8.3)
64
- listen (3.0.3)
65
- rb-fsevent (>= 0.9.3)
66
- rb-inotify (>= 0.9)
67
- little-plugger (1.1.4)
68
- log4r (1.1.10)
69
- logging (1.8.2)
70
- little-plugger (>= 1.1.3)
71
- multi_json (>= 1.8.4)
72
- method_source (0.8.2)
73
- mime-types (2.6.2)
74
- mini_portile (0.6.0)
75
- multi_json (1.11.2)
76
- net-scp (1.1.2)
77
- net-ssh (>= 2.6.5)
78
- net-sftp (2.1.2)
79
- net-ssh (>= 2.6.5)
80
- net-ssh (2.9.2)
81
- netrc (0.10.3)
82
- nokogiri (1.6.3.1)
83
- mini_portile (= 0.6.0)
84
- nori (2.6.0)
85
- pry (0.10.2)
86
- coderay (~> 1.1.0)
87
- method_source (~> 0.8.1)
88
- slop (~> 3.4)
89
- rake (10.4.2)
90
- rb-fsevent (0.9.6)
91
- rb-inotify (0.9.5)
92
- ffi (>= 0.5.0)
93
- rb-kqueue (0.2.4)
94
- ffi (>= 0.5.0)
95
- rest-client (1.8.0)
96
- http-cookie (>= 1.0.2, < 2.0)
97
- mime-types (>= 1.16, < 3.0)
98
- netrc (~> 0.7)
99
- rspec (2.14.1)
100
- rspec-core (~> 2.14.0)
101
- rspec-expectations (~> 2.14.0)
102
- rspec-mocks (~> 2.14.0)
103
- rspec-core (2.14.8)
104
- rspec-expectations (2.14.5)
105
- diff-lcs (>= 1.1.3, < 2.0)
106
- rspec-mocks (2.14.6)
107
- rubyntlm (0.4.0)
108
- rubyzip (1.1.7)
109
- safe_yaml (1.0.4)
110
- slop (3.6.0)
111
- thor (0.18.1)
112
- unf (0.1.4)
113
- unf_ext
114
- unf_ext (0.0.7.1)
115
- uuidtools (2.1.5)
116
- wdm (0.1.1)
117
- webmock (1.21.0)
118
- addressable (>= 2.3.6)
119
- crack (>= 0.3.2)
120
- winrm (1.3.4)
121
- builder (>= 2.1.2)
122
- gssapi (~> 1.2)
123
- gyoku (~> 1.0)
124
- httpclient (~> 2.2, >= 2.2.0.2)
125
- logging (~> 1.6, >= 1.6.1)
126
- nori (~> 2.0)
127
- rubyntlm (~> 0.4.0)
128
- uuidtools (~> 2.1.2)
129
- winrm-fs (0.2.2)
130
- erubis (~> 2.7)
131
- logging (~> 1.6, >= 1.6.1)
132
- rubyzip (~> 1.1)
133
- winrm (~> 1.3.0)
134
-
135
- PLATFORMS
136
- ruby
137
-
138
- DEPENDENCIES
139
- awesome_print
140
- byebug
141
- pry (~> 0.10)
142
- rake
143
- rspec-core (~> 2.14.0)
144
- rspec-expectations (~> 2.14.0)
145
- rspec-mocks (~> 2.14.0)
146
- vagrant!
147
- vagrant-skytap!
148
- vagrant-spec!
149
- webmock (~> 1.20)