vagrant-digitalocean 0.9.5 → 0.9.6
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4510281f427a3aa71fbf86b033ab254c4a8833d34a05649a3a1c9849df56575b
|
|
4
|
+
data.tar.gz: ce9d15fe9a6a98b9bcdbe6a549c2af6f83f5c8ce3815e70e53d6f33dec14459e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8673bc66d9c05d5938758ce547d395183225db0c31be54442812b5ed797968beb2fa588b99ccba00fa0ce245b5032159974eff93b4e318249f2a66e8692c5e83
|
|
7
|
+
data.tar.gz: 28d15d0df8e90e1d4731c33932c9fc64e7d42cb4a3c361c91084d56ca9e11b68ce5bc3f157bbb7f617c5afaec139d863aef09f50735ad436513f2b2141cb0282
|
data/Gemfile
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
source 'https://rubygems.org'
|
|
2
2
|
|
|
3
|
-
gem 'vagrant', :git => '
|
|
3
|
+
gem 'vagrant', :git => 'https://github.com/hashicorp/vagrant.git', :tag => 'v2.3.7'
|
|
4
4
|
gem 'rake'
|
|
5
5
|
|
|
6
6
|
group :plugins do
|
|
7
7
|
gem 'vagrant-omnibus'
|
|
8
|
-
gem 'vagrant-digitalocean', :path => '.'
|
|
9
8
|
end
|
|
10
9
|
|
|
11
10
|
gemspec
|
data/README.md
CHANGED
|
@@ -162,16 +162,10 @@ To contribute, fork then clone the repository, and then the following:
|
|
|
162
162
|
|
|
163
163
|
**Developing**
|
|
164
164
|
|
|
165
|
-
1. Install [
|
|
166
|
-
2.
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
* `bundle _1.7.9_ install`
|
|
170
|
-
4. Do your development and run a few commands, one to get started would be:
|
|
171
|
-
* `bundle _1.7.9_ exec vagrant digitalocean-list images`
|
|
172
|
-
5. You can then run a test:
|
|
173
|
-
* `bundle _1.7.9_ exec rake test`
|
|
174
|
-
6. Once you are satisfied with your changes, please submit a pull request.
|
|
165
|
+
1. Install [RVM](https://rvm.io/rvm/install)
|
|
166
|
+
2. If using MacOS, follow these [OpenSSL instructions](https://github.com/rvm/rvm/issues/5252#issuecomment-1298835941)
|
|
167
|
+
3. Use Ruby v3.0.0 `rvm use 3.0.0`
|
|
168
|
+
4. Run `bundle install`
|
|
175
169
|
|
|
176
170
|
**Testing**
|
|
177
171
|
|
|
@@ -44,13 +44,9 @@ module VagrantPlugins
|
|
|
44
44
|
droplet = Provider.droplet(@machine, :refresh => true)
|
|
45
45
|
public_network = droplet['networks']['v4'].find { |network| network['type'] == 'public' }
|
|
46
46
|
private_network = droplet['networks']['v4'].find { |network| network['type'] == 'private' }
|
|
47
|
-
env[:ui].info I18n.t('vagrant_digital_ocean.info.droplet_ip',
|
|
48
|
-
:ip => public_network['ip_address']
|
|
49
|
-
})
|
|
47
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.droplet_ip', :ip => public_network['ip_address'])
|
|
50
48
|
if private_network
|
|
51
|
-
env[:ui].info I18n.t('vagrant_digital_ocean.info.droplet_private_ip',
|
|
52
|
-
:ip => private_network['ip_address']
|
|
53
|
-
})
|
|
49
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.droplet_private_ip', :ip => private_network['ip_address'])
|
|
54
50
|
end
|
|
55
51
|
|
|
56
52
|
# wait for ssh to be ready
|
|
@@ -23,9 +23,7 @@ module VagrantPlugins
|
|
|
23
23
|
.request('/v2/account/keys')
|
|
24
24
|
.find_id(:ssh_keys, :name => ssh_key_name)
|
|
25
25
|
|
|
26
|
-
env[:ui].info I18n.t('vagrant_digital_ocean.info.using_key',
|
|
27
|
-
:name => ssh_key_name
|
|
28
|
-
})
|
|
26
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.using_key', :name => ssh_key_name)
|
|
29
27
|
rescue Errors::ResultMatchError
|
|
30
28
|
env[:ssh_key_id] = create_ssh_key(ssh_key_name, env)
|
|
31
29
|
end
|
|
@@ -42,9 +40,7 @@ module VagrantPlugins
|
|
|
42
40
|
path = File.expand_path(path, @machine.env.root_path)
|
|
43
41
|
pub_key = DigitalOcean.public_key(path)
|
|
44
42
|
|
|
45
|
-
env[:ui].info I18n.t('vagrant_digital_ocean.info.creating_key',
|
|
46
|
-
:name => name
|
|
47
|
-
})
|
|
43
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.creating_key', :name => name)
|
|
48
44
|
|
|
49
45
|
result = @client.post('/v2/account/keys', {
|
|
50
46
|
:name => name,
|
|
@@ -19,9 +19,7 @@ module VagrantPlugins
|
|
|
19
19
|
user = @machine.config.ssh.username
|
|
20
20
|
@machine.config.ssh.username = 'root'
|
|
21
21
|
|
|
22
|
-
env[:ui].info I18n.t('vagrant_digital_ocean.info.creating_user',
|
|
23
|
-
:user => user
|
|
24
|
-
})
|
|
22
|
+
env[:ui].info I18n.t('vagrant_digital_ocean.info.creating_user', :user => user)
|
|
25
23
|
|
|
26
24
|
# create user account
|
|
27
25
|
@machine.communicate.execute(<<-BASH)
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-digitalocean
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Bender
|
|
8
8
|
- Seth Reeser
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: faraday
|
|
@@ -99,10 +99,10 @@ files:
|
|
|
99
99
|
- test/test_id_rsa
|
|
100
100
|
- test/test_id_rsa.pub
|
|
101
101
|
- vagrant-digitalocean.gemspec
|
|
102
|
-
homepage:
|
|
102
|
+
homepage:
|
|
103
103
|
licenses: []
|
|
104
104
|
metadata: {}
|
|
105
|
-
post_install_message:
|
|
105
|
+
post_install_message:
|
|
106
106
|
rdoc_options: []
|
|
107
107
|
require_paths:
|
|
108
108
|
- lib
|
|
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
117
117
|
- !ruby/object:Gem::Version
|
|
118
118
|
version: '0'
|
|
119
119
|
requirements: []
|
|
120
|
-
rubygems_version: 3.
|
|
121
|
-
signing_key:
|
|
120
|
+
rubygems_version: 3.2.3
|
|
121
|
+
signing_key:
|
|
122
122
|
specification_version: 4
|
|
123
123
|
summary: Enables Vagrant to manage DigitalOcean droplets
|
|
124
124
|
test_files:
|