onlyoffice_digitalocean_wrapper 0.3.0 → 0.4.0
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: e8ffe80e6adc5bdef71b4a9f02dff5bc87aca9a6906390083a16ee9baa4a58d8
|
4
|
+
data.tar.gz: 3b9e1844f675d02a7f9e684eac9971cb21cb3e77a9d69b891e42fcdd320e8efe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df597884080804a5fd4e10f538c75c330caba13b30d96059315564ebdc12abf2ffb01b571caef39f3c031da649c5a3da5d2ffb5a08c4d86bdb99d3dde65f2cfa
|
7
|
+
data.tar.gz: df257f67704271ee1307ebdbe54cfbf06b71aae653b4923cbcd3febfc844b8f19c6182923a6331d262e2856e0a5eca225a0df5b5512c6f1cb82ae42a99cfbec4
|
@@ -25,13 +25,6 @@ module OnlyofficeDigitaloceanWrapper
|
|
25
25
|
raise ArgumentError, 'DigitalOceanWrapper: Your Access Token is Incorrect' unless correct_access_token?
|
26
26
|
end
|
27
27
|
|
28
|
-
def current_kernel(droplet_name)
|
29
|
-
droplet = droplet_by_name(droplet_name)
|
30
|
-
kernel_name = droplet.kernel.name
|
31
|
-
OnlyofficeLoggerHelper.log("get_droplet_kernel_by_name(#{droplet_name}): #{kernel_name}")
|
32
|
-
kernel_name
|
33
|
-
end
|
34
|
-
|
35
28
|
def wait_until_droplet_have_status(droplet_name, status = 'active', params = {})
|
36
29
|
timeout = params.fetch(:timeout, 300)
|
37
30
|
counter = 0
|
@@ -46,13 +39,6 @@ module OnlyofficeDigitaloceanWrapper
|
|
46
39
|
get_droplet_status_by_name(droplet_name)
|
47
40
|
end
|
48
41
|
|
49
|
-
def kernels_of_droplet(droplet_name)
|
50
|
-
droplet_id = get_droplet_id_by_name(droplet_name)
|
51
|
-
kernels = client.droplets.kernels(id: droplet_id).to_a
|
52
|
-
OnlyofficeLoggerHelper.log("Got kernels_of_droplet(#{droplet_name})")
|
53
|
-
kernels
|
54
|
-
end
|
55
|
-
|
56
42
|
def restore_image_by_name(image_name = 'nct-at-stable',
|
57
43
|
droplet_name = image_name,
|
58
44
|
region = 'nyc3',
|
@@ -67,6 +53,7 @@ module OnlyofficeDigitaloceanWrapper
|
|
67
53
|
region: region,
|
68
54
|
image: image_id.to_i,
|
69
55
|
tags: Array(tags),
|
56
|
+
monitoring: true,
|
70
57
|
size: size)
|
71
58
|
created = @client.droplets.create(droplet)
|
72
59
|
OnlyofficeLoggerHelper.log("restore_image_by_name(#{image_name}, #{droplet_name})")
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlyoffice_digitalocean_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- ONLYOFFICE
|
7
8
|
- Pavel Lobashov
|
8
9
|
- Oleg Nazarov
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2020-
|
13
|
+
date: 2020-03-20 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: droplet_kit
|
@@ -39,6 +40,20 @@ dependencies:
|
|
39
40
|
- - "~>"
|
40
41
|
- !ruby/object:Gem::Version
|
41
42
|
version: '1'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rake
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '13.0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '13.0'
|
42
57
|
description: Wrapper gem for DigitalOcean. Use in testing projects
|
43
58
|
email:
|
44
59
|
- shockwavenn@gmail.com
|
@@ -47,7 +62,6 @@ executables: []
|
|
47
62
|
extensions: []
|
48
63
|
extra_rdoc_files: []
|
49
64
|
files:
|
50
|
-
- README.md
|
51
65
|
- lib/onlyoffice_digitalocean_wrapper.rb
|
52
66
|
- lib/onlyoffice_digitalocean_wrapper/digitalocean_wrapper.rb
|
53
67
|
- lib/onlyoffice_digitalocean_wrapper/digitalocean_wrapper/digitalocean_exceptions.rb
|
@@ -59,7 +73,12 @@ files:
|
|
59
73
|
homepage: https://github.com/onlyoffice-testing-robot/onlyoffice_digitalocean_wrapper
|
60
74
|
licenses:
|
61
75
|
- AGPL-3.0
|
62
|
-
metadata:
|
76
|
+
metadata:
|
77
|
+
bug_tracker_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_digitalocean_wrapper/issues
|
78
|
+
changelog_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_digitalocean_wrapper/blob/master/CHANGELOG.md
|
79
|
+
documentation_uri: https://www.rubydoc.info/gems/onlyoffice_digitalocean_wrapper
|
80
|
+
homepage_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_digitalocean_wrapper
|
81
|
+
source_code_uri: https://github.com/onlyoffice-testing-robot/onlyoffice_digitalocean_wrapper
|
63
82
|
post_install_message:
|
64
83
|
rdoc_options: []
|
65
84
|
require_paths:
|
@@ -68,7 +87,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
87
|
requirements:
|
69
88
|
- - ">="
|
70
89
|
- !ruby/object:Gem::Version
|
71
|
-
version: '2.
|
90
|
+
version: '2.3'
|
72
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
92
|
requirements:
|
74
93
|
- - ">="
|
data/README.md
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
# OnlyofficeDigitaloceanWrapper
|
2
|
-
|
3
|
-
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library
|
4
|
-
into a gem. Put your Ruby code in the file `lib/onlyoffice_digitalocean_wrapper`. To experiment with that code, run
|
5
|
-
`bin/console` for an interactive prompt.
|
6
|
-
|
7
|
-
TODO: Delete this and the text above, and describe your gem
|
8
|
-
|
9
|
-
## Installation
|
10
|
-
|
11
|
-
Add this line to your application's Gemfile:
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
gem 'onlyoffice_digitalocean_wrapper'
|
15
|
-
```
|
16
|
-
|
17
|
-
And then execute:
|
18
|
-
|
19
|
-
$ bundle
|
20
|
-
|
21
|
-
Or install it yourself as:
|
22
|
-
|
23
|
-
$ gem install onlyoffice_digitalocean_wrapper
|
24
|
-
|
25
|
-
## Usage
|
26
|
-
|
27
|
-
TODO: Write usage instructions here
|
28
|
-
|
29
|
-
## Development
|
30
|
-
|
31
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
|
32
|
-
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
33
|
-
|
34
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update
|
35
|
-
the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for
|
36
|
-
the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
37
|
-
|
38
|
-
## Contributing
|
39
|
-
|
40
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/onlyoffice_digitalocean_wrapper.
|
41
|
-
|