vagrant-hetznercloud 0.0.1

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.
Files changed (35) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +201 -0
  4. data/README.md +111 -0
  5. data/Rakefile +6 -0
  6. data/example_box/metadata.json +3 -0
  7. data/examples/Vagrantfile +63 -0
  8. data/hetznercloud.box +0 -0
  9. data/lib/vagrant-hetznercloud.rb +18 -0
  10. data/lib/vagrant-hetznercloud/action.rb +189 -0
  11. data/lib/vagrant-hetznercloud/action/connect_hetznercloud.rb +33 -0
  12. data/lib/vagrant-hetznercloud/action/create_server.rb +92 -0
  13. data/lib/vagrant-hetznercloud/action/destroy_server.rb +33 -0
  14. data/lib/vagrant-hetznercloud/action/is_created.rb +18 -0
  15. data/lib/vagrant-hetznercloud/action/is_stopped.rb +18 -0
  16. data/lib/vagrant-hetznercloud/action/list_images.rb +23 -0
  17. data/lib/vagrant-hetznercloud/action/message_already_created.rb +16 -0
  18. data/lib/vagrant-hetznercloud/action/message_not_created.rb +16 -0
  19. data/lib/vagrant-hetznercloud/action/message_will_not_destroy.rb +16 -0
  20. data/lib/vagrant-hetznercloud/action/read_ssh_info.rb +51 -0
  21. data/lib/vagrant-hetznercloud/action/read_state.rb +36 -0
  22. data/lib/vagrant-hetznercloud/action/start_server.rb +90 -0
  23. data/lib/vagrant-hetznercloud/action/stop_server.rb +25 -0
  24. data/lib/vagrant-hetznercloud/action/warn_networks.rb +19 -0
  25. data/lib/vagrant-hetznercloud/command/images.rb +20 -0
  26. data/lib/vagrant-hetznercloud/command/root.rb +61 -0
  27. data/lib/vagrant-hetznercloud/config.rb +145 -0
  28. data/lib/vagrant-hetznercloud/errors.rb +21 -0
  29. data/lib/vagrant-hetznercloud/plugin.rb +77 -0
  30. data/lib/vagrant-hetznercloud/provider.rb +48 -0
  31. data/lib/vagrant-hetznercloud/util/timer.rb +17 -0
  32. data/lib/vagrant-hetznercloud/version.rb +5 -0
  33. data/locales/en.yml +90 -0
  34. data/vagrant-hetznercloud.gemspec +30 -0
  35. metadata +147 -0
@@ -0,0 +1,90 @@
1
+ en:
2
+ vagrant_hetznercloud:
3
+ already_status: |-
4
+ The machine is already %{status}.
5
+
6
+ creating_server: |-
7
+ Creating a server with the following settings...
8
+ not_created: |-
9
+ Server is not created. Please run `vagrant up` first.
10
+ ready: |-
11
+ Machine is booted and ready for use!
12
+ off: |-
13
+ Machine is powered off.
14
+ starting: |-
15
+ Starting the server...
16
+ stopping: |-
17
+ Stopping the server...
18
+ destroying: |-
19
+ Destroying the server...
20
+ waiting_for_ready: |-
21
+ Waiting for server to become "ready"...
22
+ waiting_for_ssh: |-
23
+ Waiting for SSH to become available...
24
+ warn_networks: |-
25
+ Warning! The Hetznercloud provider doesn't support any of the Vagrant
26
+ high-level network configurations (`config.vm.network`). They
27
+ will be silently ignored.
28
+ will_not_destroy: |-
29
+ The server '%{name}' will not be destroyed, since the confirmation
30
+ was declined.
31
+
32
+ config:
33
+ organization_required: |-
34
+ A organization must be specified via "organization" option.
35
+ token_required: |-
36
+ A token must be specified via "token" option.
37
+ ssh_keys_required: |-
38
+ An SSH key must be provided.
39
+
40
+ errors:
41
+ fog_error: |-
42
+ There was an error talking to Hetznercloud. The error message is shown
43
+ below:
44
+
45
+ %{message}
46
+ internal_fog_error: |-
47
+ There was an error talking to Hetznercloud. The error message is shown
48
+ below:
49
+
50
+ Error: %{error}
51
+ Response: %{response}
52
+ server_ready_timeout: |-
53
+ The server never became "ready" in Hetznercloud. The timeout currently
54
+ set waiting for the server to become ready is %{timeout} seconds.
55
+ Please verify that the machine properly boots. If you need more time
56
+ set the `server_ready_timeout` configuration on the Hetznercloud provider.
57
+
58
+ states:
59
+ short_not_created: |-
60
+ not created
61
+ long_not_created: |-
62
+ The server is not created. Run `vagrant up` to create it.
63
+
64
+ short_off: |-
65
+ stopped
66
+ long_off: |-
67
+ The server is stopped. Run `vagrant up` to start it.
68
+
69
+ short_stopped: |-
70
+ stopped
71
+ long_stopped: |-
72
+ The server is stopped. Run `vagrant up` to start it.
73
+
74
+ short_stopping: |-
75
+ stopping
76
+ long_stopping: |-
77
+ The server is stopping. Wait until is completely stopped to
78
+ run `vagrant up` and start it.
79
+
80
+ short_starting: |-
81
+ starting
82
+ long_starting: |-
83
+ The server is starting. You must wait for this to
84
+ complete before you can access it.
85
+
86
+ short_running: |-
87
+ running
88
+ long_running: |-
89
+ The server is running. To stop this machine, you can run
90
+ `vagrant halt`. To destroy the machine, you can run `vagrant destroy`.
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+
3
+ lib = File.expand_path('../lib', __FILE__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'vagrant-hetznercloud/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'vagrant-hetznercloud'
9
+ spec.version = VagrantPlugins::Hetznercloud::VERSION
10
+ spec.authors = ['Robert Heinzmann']
11
+ spec.email = ['reg@elconas.de']
12
+
13
+ spec.summary = 'Vagrant provider plugin for Hetznercloud'
14
+ spec.description = 'Enables Vagrant to manage machines in Hetznercloud.'
15
+ spec.homepage = 'https://github.com/elconas/vagrant-hetznercloud'
16
+ spec.license = 'APACHE-2.0'
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f|
19
+ f.match(%r{^(test|spec|features)/}) || f.match(%r{^\.})
20
+ }
21
+
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_development_dependency 'bundler'
25
+ spec.add_development_dependency 'rake'
26
+ spec.add_development_dependency 'rubocop'
27
+
28
+ spec.add_dependency 'fog-hetznercloud', '~> 0.0.2'
29
+ spec.add_dependency 'toml'
30
+ end
metadata ADDED
@@ -0,0 +1,147 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vagrant-hetznercloud
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Robert Heinzmann
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: fog-hetznercloud
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.0.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: toml
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Enables Vagrant to manage machines in Hetznercloud.
84
+ email:
85
+ - reg@elconas.de
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - Gemfile
91
+ - LICENSE
92
+ - README.md
93
+ - Rakefile
94
+ - example_box/metadata.json
95
+ - examples/Vagrantfile
96
+ - hetznercloud.box
97
+ - lib/vagrant-hetznercloud.rb
98
+ - lib/vagrant-hetznercloud/action.rb
99
+ - lib/vagrant-hetznercloud/action/connect_hetznercloud.rb
100
+ - lib/vagrant-hetznercloud/action/create_server.rb
101
+ - lib/vagrant-hetznercloud/action/destroy_server.rb
102
+ - lib/vagrant-hetznercloud/action/is_created.rb
103
+ - lib/vagrant-hetznercloud/action/is_stopped.rb
104
+ - lib/vagrant-hetznercloud/action/list_images.rb
105
+ - lib/vagrant-hetznercloud/action/message_already_created.rb
106
+ - lib/vagrant-hetznercloud/action/message_not_created.rb
107
+ - lib/vagrant-hetznercloud/action/message_will_not_destroy.rb
108
+ - lib/vagrant-hetznercloud/action/read_ssh_info.rb
109
+ - lib/vagrant-hetznercloud/action/read_state.rb
110
+ - lib/vagrant-hetznercloud/action/start_server.rb
111
+ - lib/vagrant-hetznercloud/action/stop_server.rb
112
+ - lib/vagrant-hetznercloud/action/warn_networks.rb
113
+ - lib/vagrant-hetznercloud/command/images.rb
114
+ - lib/vagrant-hetznercloud/command/root.rb
115
+ - lib/vagrant-hetznercloud/config.rb
116
+ - lib/vagrant-hetznercloud/errors.rb
117
+ - lib/vagrant-hetznercloud/plugin.rb
118
+ - lib/vagrant-hetznercloud/provider.rb
119
+ - lib/vagrant-hetznercloud/util/timer.rb
120
+ - lib/vagrant-hetznercloud/version.rb
121
+ - locales/en.yml
122
+ - vagrant-hetznercloud.gemspec
123
+ homepage: https://github.com/elconas/vagrant-hetznercloud
124
+ licenses:
125
+ - APACHE-2.0
126
+ metadata: {}
127
+ post_install_message:
128
+ rdoc_options: []
129
+ require_paths:
130
+ - lib
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - ">="
134
+ - !ruby/object:Gem::Version
135
+ version: '0'
136
+ required_rubygems_version: !ruby/object:Gem::Requirement
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ requirements: []
142
+ rubyforge_project:
143
+ rubygems_version: 2.4.5.1
144
+ signing_key:
145
+ specification_version: 4
146
+ summary: Vagrant provider plugin for Hetznercloud
147
+ test_files: []