vagrant-haipa 0.0.1 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +11 -0
  3. data/.gitignore +49 -16
  4. data/.rspec_status +5 -0
  5. data/.vscode/launch.json +13 -3
  6. data/Gemfile +6 -2
  7. data/Gemfile.lock +181 -0
  8. data/LICENSE +21 -373
  9. data/Rakefile +7 -16
  10. data/lib/vagrant-haipa/action/converge_machine.rb +44 -0
  11. data/lib/vagrant-haipa/{actions → action}/delete_machine.rb +3 -10
  12. data/lib/vagrant-haipa/action/is_created.rb +19 -0
  13. data/lib/vagrant-haipa/action/is_running.rb +20 -0
  14. data/lib/vagrant-haipa/{actions → action}/message_already_created.rb +1 -1
  15. data/lib/vagrant-haipa/{actions → action}/message_not_created.rb +1 -1
  16. data/lib/vagrant-haipa/{actions → action}/message_will_not_destroy.rb +1 -1
  17. data/lib/vagrant-haipa/action/read_state.rb +19 -0
  18. data/lib/vagrant-haipa/{actions → action}/set_name.rb +3 -6
  19. data/lib/vagrant-haipa/action/start_machine.rb +24 -0
  20. data/lib/vagrant-haipa/action/stop_machine.rb +25 -0
  21. data/lib/vagrant-haipa/{actions → action}/wait_for_ip_address.rb +4 -4
  22. data/lib/vagrant-haipa/{actions.rb → action.rb} +78 -106
  23. data/lib/vagrant-haipa/config.rb +17 -15
  24. data/lib/vagrant-haipa/driver.rb +139 -0
  25. data/lib/vagrant-haipa/errors.rb +4 -36
  26. data/lib/vagrant-haipa/plugin.rb +8 -7
  27. data/lib/vagrant-haipa/provider.rb +44 -63
  28. data/lib/vagrant-haipa/version.rb +2 -2
  29. data/lib/vagrant-haipa.rb +11 -7
  30. data/locales/en.yml +2 -70
  31. data/spec/spec_helper.rb +20 -0
  32. data/spec/unit/provider_spec.rb +38 -0
  33. data/test/Vagrantfile +23 -14
  34. data/test/console.key +27 -0
  35. data/vagrant +27 -27
  36. data/vagrant-haipa.gemspec +3 -4
  37. metadata +32 -53
  38. data/README.md +0 -111
  39. data/lib/vagrant-haipa/actions/check_state.rb +0 -19
  40. data/lib/vagrant-haipa/actions/connect_haipa.rb +0 -24
  41. data/lib/vagrant-haipa/actions/create_machine.rb +0 -56
  42. data/lib/vagrant-haipa/actions/is_created.rb +0 -18
  43. data/lib/vagrant-haipa/actions/is_stopped.rb +0 -18
  44. data/lib/vagrant-haipa/actions/modify_provision_path.rb +0 -38
  45. data/lib/vagrant-haipa/actions/shut_down.rb +0 -33
  46. data/lib/vagrant-haipa/actions/start_machine.rb +0 -34
  47. data/lib/vagrant-haipa/actions/stop_machine.rb +0 -33
  48. data/lib/vagrant-haipa/helpers/client.rb +0 -111
  49. data/lib/vagrant-haipa/helpers/result.rb +0 -40
  50. data/test/cookbooks/test/recipes/default.rb +0 -1
  51. data/test/scripts/provision.sh +0 -3
  52. data/test/test.sh +0 -13
  53. data/test/test_id_rsa +0 -27
  54. data/test/test_id_rsa.pub +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e9fea08000afe584d135ccaa92e115c8ec478743df8804250a3f0ab07955eff
4
- data.tar.gz: 6d19757a58853a2b63c6898b06702c560918e4b916c09de2c14fee809d9679ca
3
+ metadata.gz: 21325a2cb88a4517cde18c3d4c1a46a010ca63e7a45e9a18063c86f14f312f61
4
+ data.tar.gz: 3deeff0bc60a5a3143730aac39f774169a2a2223eead743129676015cb5cd896
5
5
  SHA512:
6
- metadata.gz: 552a0c7a1b4ed8c8150406c6b8573300ca1734c7f45b4e3d41f092776d47fe350264ef50ff45cd75fd1dc365021c5ee971100b3616f3384f2321ea2493b552b7
7
- data.tar.gz: b579167a61f1a71bdd3d007895f0638b9a120431224cd7462f10475252727f1e4305de39a2268b635727672f72b7752fba3636f05d738469fd783c22bd0b8f18
6
+ metadata.gz: 26c07c85abf8543332b21caf8ab9750e3e1fa9d8596c5a1c2e9a49ebc56572ab8f14168c0939e10cd19a6f9f5c2cf5b8da00cbc831f25f0c9acf2a8a130206cf
7
+ data.tar.gz: 3a0b99d560151d865d3d749219ed37d04671e3308810de23537bf2d04889b71670b17484f0d29074b25574c32972e178555f163ec0ad288e3fd8d2a2838300b5
data/.editorconfig ADDED
@@ -0,0 +1,11 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ indent_style = space
11
+ indent_size = 2
data/.gitignore CHANGED
@@ -1,19 +1,52 @@
1
1
  *.gem
2
2
  *.rbc
3
- .bundle
4
- .config
5
- .yardoc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /spec/examples.txt
9
+ /test/tmp/
10
+ /test/version_tmp/
11
+ /test/.vagrant
12
+ /tmp/
13
+
14
+ # Used by dotenv library to load environment variables.
15
+ # .env
16
+
17
+ ## Specific to RubyMotion:
18
+ .dat*
19
+ .repl_history
20
+ build/
21
+ *.bridgesupport
22
+ build-iPhoneOS/
23
+ build-iPhoneSimulator/
24
+
25
+ ## Specific to RubyMotion (use of CocoaPods):
26
+ #
27
+ # We recommend against adding the Pods directory to your .gitignore. However
28
+ # you should judge for yourself, the pros and cons are mentioned at:
29
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
30
+ #
31
+ # vendor/Pods/
32
+
33
+ ## Documentation cache and generated files:
34
+ /.yardoc/
35
+ /_yardoc/
36
+ /doc/
37
+ /rdoc/
38
+
39
+ ## Environment normalization:
40
+ /.bundle/
41
+ /vendor/bundle
42
+ /lib/bundler/man/
43
+
44
+ # for a library or gem, you might want to ignore these files since the code is
45
+ # intended to run in multiple environments; otherwise, check them in:
6
46
  Gemfile.lock
7
- InstalledFiles
8
- _yardoc
9
- coverage
10
- doc/
11
- lib/bundler/man
12
- pkg
13
- rdoc
14
- spec/reports
15
- test/tmp
16
- test/version_tmp
17
- test/.vagrant
18
- tmp
19
- .vagrant
47
+ .ruby-version
48
+ .ruby-gemset
49
+
50
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
51
+ .rvmrc
52
+ .rspec_status
data/.rspec_status ADDED
@@ -0,0 +1,5 @@
1
+ example_id | status | run_time |
2
+ ----------------------------------- | ------ | --------------- |
3
+ ./spec/unit/provider_spec.rb[1:1:1] | passed | 0.1309 seconds |
4
+ ./spec/unit/provider_spec.rb[1:2:1] | passed | 0.01439 seconds |
5
+ ./spec/unit/provider_spec.rb[1:2:2] | passed | 0.00219 seconds |
data/.vscode/launch.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "request": "launch",
12
12
  "cwd": "${workspaceRoot}\\test",
13
13
  "useBundler": true,
14
- "pathToBundler": "C:\\tools\\Ruby25\\bin\\bundle.bat",
14
+ "pathToBundler": "C:\\Ruby26-x64\\bin\\bundle.cmd",
15
15
  "program": "${workspaceRoot}/vagrant",
16
16
  "args": [ "up", "--provider=haipa"]
17
17
  },
@@ -21,9 +21,19 @@
21
21
  "request": "launch",
22
22
  "cwd": "${workspaceRoot}\\test",
23
23
  "useBundler": true,
24
- "pathToBundler": "C:\\tools\\Ruby25\\bin\\bundle.bat",
24
+ "pathToBundler": "C:\\Ruby26-x64\\bin\\bundle.cmd",
25
25
  "program": "${workspaceRoot}/vagrant",
26
26
  "args": [ "destroy","--force" ]
27
- }
27
+ },
28
+ {
29
+ "name": "Vagrant reload",
30
+ "type": "Ruby",
31
+ "request": "launch",
32
+ "cwd": "${workspaceRoot}\\test",
33
+ "useBundler": true,
34
+ "pathToBundler": "C:\\Ruby26-x64\\bin\\bundle.cmd",
35
+ "program": "${workspaceRoot}/vagrant",
36
+ "args": [ "reload" ]
37
+ }
28
38
  ]
29
39
  }
data/Gemfile CHANGED
@@ -5,12 +5,16 @@ group :development do
5
5
  # We depend on Vagrant for development, but we don't add it as a
6
6
  # gem dependency because we expect to be installed within the
7
7
  # Vagrant environment itself using `vagrant plugin`.
8
- gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git"
8
+ # tag to 2.2.3 as starting with 2.2.5 git version currently will not run in bundle
9
+ gem "vagrant", :git => "https://github.com/mitchellh/vagrant.git", :tag => 'v2.2.3'
10
+ gem 'vagrant-spec', git: "https://github.com/mitchellh/vagrant-spec.git"
11
+
9
12
  gem 'ruby-debug-ide'
10
13
  gem 'debase'
14
+ gem 'rspec'
11
15
  end
12
16
 
13
- gem 'rake'
17
+ #gem 'rake'
14
18
 
15
19
  group :plugins do
16
20
  gem 'vagrant-omnibus'
data/Gemfile.lock ADDED
@@ -0,0 +1,181 @@
1
+ GIT
2
+ remote: https://github.com/mitchellh/vagrant-spec.git
3
+ revision: abfc34474d122235d56e4c6b6fb5d3e35bedfa90
4
+ specs:
5
+ vagrant-spec (0.0.1)
6
+ childprocess (~> 0.6.0)
7
+ log4r (~> 1.1.9)
8
+ rspec (~> 3.5.0)
9
+ thor (~> 0.18.1)
10
+
11
+ GIT
12
+ remote: https://github.com/mitchellh/vagrant.git
13
+ revision: 37dc3dc6489e2a0ecc7b20ca73719e8c1ce2a4e2
14
+ tag: v2.2.3
15
+ specs:
16
+ vagrant (2.2.3)
17
+ bcrypt_pbkdf (~> 1.0.0)
18
+ childprocess (~> 0.6.0)
19
+ ed25519 (~> 1.2.4)
20
+ erubis (~> 2.7.0)
21
+ hashicorp-checkpoint (~> 0.1.5)
22
+ i18n (~> 1.1.1)
23
+ listen (~> 3.1.5)
24
+ log4r (~> 1.1.9, < 1.1.11)
25
+ net-scp (~> 1.2.0)
26
+ net-sftp (~> 2.1)
27
+ net-ssh (~> 5.1.0)
28
+ rb-kqueue (~> 0.2.0)
29
+ rest-client (>= 1.6.0, < 3.0)
30
+ ruby_dep (<= 1.3.1)
31
+ rubyzip (~> 1.2.2)
32
+ vagrant_cloud (~> 2.0.2)
33
+ wdm (~> 0.1.0)
34
+ winrm (~> 2.1)
35
+ winrm-elevated (~> 1.1)
36
+ winrm-fs (~> 1.0)
37
+
38
+ PATH
39
+ remote: .
40
+ specs:
41
+ vagrant-haipa (0.2.1)
42
+ haipa_compute (>= 0.0.2)
43
+ log4r
44
+
45
+ GEM
46
+ remote: https://rubygems.org/
47
+ specs:
48
+ bcrypt_pbkdf (1.0.1-x64-mingw32)
49
+ builder (3.2.3)
50
+ childprocess (0.6.3)
51
+ ffi (~> 1.0, >= 1.0.11)
52
+ concurrent-ruby (1.1.5)
53
+ debase (0.2.4)
54
+ debase-ruby_core_source (>= 0.10.2)
55
+ debase-ruby_core_source (0.10.5)
56
+ diff-lcs (1.3)
57
+ domain_name (0.5.20190701)
58
+ unf (>= 0.0.5, < 1.0.0)
59
+ ed25519 (1.2.4)
60
+ erubis (2.7.0)
61
+ faraday (0.15.4)
62
+ multipart-post (>= 1.2, < 3)
63
+ faraday-cookie_jar (0.0.6)
64
+ faraday (>= 0.7.4)
65
+ http-cookie (~> 1.0.0)
66
+ ffi (1.11.1-x64-mingw32)
67
+ gssapi (1.3.0)
68
+ ffi (>= 1.0.1)
69
+ gyoku (1.3.1)
70
+ builder (>= 2.1.2)
71
+ haipa_compute (0.0.2)
72
+ haipa_rest (~> 0.11.2)
73
+ haipa_rest (0.11.2)
74
+ concurrent-ruby (~> 1.0)
75
+ faraday (~> 0.9)
76
+ faraday-cookie_jar (~> 0.0.6)
77
+ jwt (~> 2.2)
78
+ ms_rest (~> 0.7.4)
79
+ unf_ext (= 0.0.7.2)
80
+ hashicorp-checkpoint (0.1.5)
81
+ http-cookie (1.0.3)
82
+ domain_name (~> 0.5)
83
+ httpclient (2.8.3)
84
+ i18n (1.1.1)
85
+ concurrent-ruby (~> 1.0)
86
+ jwt (2.2.1)
87
+ listen (3.1.5)
88
+ rb-fsevent (~> 0.9, >= 0.9.4)
89
+ rb-inotify (~> 0.9, >= 0.9.7)
90
+ ruby_dep (~> 1.2)
91
+ little-plugger (1.1.4)
92
+ log4r (1.1.10)
93
+ logging (2.2.2)
94
+ little-plugger (~> 1.1)
95
+ multi_json (~> 1.10)
96
+ mime-types (3.2.2)
97
+ mime-types-data (~> 3.2015)
98
+ mime-types-data (3.2019.0331)
99
+ ms_rest (0.7.4)
100
+ concurrent-ruby (~> 1.0)
101
+ faraday (~> 0.9)
102
+ timeliness (~> 0.3.10)
103
+ multi_json (1.13.1)
104
+ multipart-post (2.1.1)
105
+ net-scp (1.2.1)
106
+ net-ssh (>= 2.6.5)
107
+ net-sftp (2.1.2)
108
+ net-ssh (>= 2.6.5)
109
+ net-ssh (5.1.0)
110
+ netrc (0.11.0)
111
+ nori (2.6.0)
112
+ rake (12.3.3)
113
+ rb-fsevent (0.10.3)
114
+ rb-inotify (0.10.0)
115
+ ffi (~> 1.0)
116
+ rb-kqueue (0.2.5)
117
+ ffi (>= 0.5.0)
118
+ rest-client (2.0.2-x64-mingw32)
119
+ ffi (~> 1.9)
120
+ http-cookie (>= 1.0.2, < 2.0)
121
+ mime-types (>= 1.16, < 4.0)
122
+ netrc (~> 0.8)
123
+ rspec (3.5.0)
124
+ rspec-core (~> 3.5.0)
125
+ rspec-expectations (~> 3.5.0)
126
+ rspec-mocks (~> 3.5.0)
127
+ rspec-core (3.5.4)
128
+ rspec-support (~> 3.5.0)
129
+ rspec-expectations (3.5.0)
130
+ diff-lcs (>= 1.2.0, < 2.0)
131
+ rspec-support (~> 3.5.0)
132
+ rspec-mocks (3.5.0)
133
+ diff-lcs (>= 1.2.0, < 2.0)
134
+ rspec-support (~> 3.5.0)
135
+ rspec-support (3.5.0)
136
+ ruby-debug-ide (0.7.0)
137
+ rake (>= 0.8.1)
138
+ ruby_dep (1.3.1)
139
+ rubyntlm (0.6.2)
140
+ rubyzip (1.2.3)
141
+ thor (0.18.1)
142
+ timeliness (0.3.10)
143
+ unf (0.1.4)
144
+ unf_ext
145
+ unf_ext (0.0.7.2-x64-mingw32)
146
+ vagrant-omnibus (1.5.0)
147
+ vagrant_cloud (2.0.2)
148
+ rest-client (~> 2.0.2)
149
+ wdm (0.1.1)
150
+ winrm (2.3.2)
151
+ builder (>= 2.1.2)
152
+ erubis (~> 2.7)
153
+ gssapi (~> 1.2)
154
+ gyoku (~> 1.0)
155
+ httpclient (~> 2.2, >= 2.2.0.2)
156
+ logging (>= 1.6.1, < 3.0)
157
+ nori (~> 2.0)
158
+ rubyntlm (~> 0.6.0, >= 0.6.1)
159
+ winrm-elevated (1.1.1)
160
+ winrm (~> 2.0)
161
+ winrm-fs (~> 1.0)
162
+ winrm-fs (1.3.2)
163
+ erubis (~> 2.7)
164
+ logging (>= 1.6.1, < 3.0)
165
+ rubyzip (~> 1.1)
166
+ winrm (~> 2.0)
167
+
168
+ PLATFORMS
169
+ x64-mingw32
170
+
171
+ DEPENDENCIES
172
+ debase
173
+ rspec
174
+ ruby-debug-ide
175
+ vagrant!
176
+ vagrant-haipa!
177
+ vagrant-omnibus
178
+ vagrant-spec!
179
+
180
+ BUNDLED WITH
181
+ 2.0.1