runabove 0.0.3 → 0.0.4
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 +4 -4
- data/lib/runabove.rb +24 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c0ec0433a1dd0b6c12158ed88c6862a5a051a71
|
|
4
|
+
data.tar.gz: 054b8113b486d0e315ec405bac625dbbfc587171
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4948c26b4857c4626e82c80dd38e257373749d9406831bab4da6b7c19d4e9f9cb4373115d30d53a61d8574479a8243807fb2f460c6fdde853e4f1f3d1c680dd8
|
|
7
|
+
data.tar.gz: 0cf3b4db71a09d02c18d34222d35647232f6c221da8965a610a08e5b0726c2d62367f0a5a7258771ebb8d6548307dd22629358717294285d6ea613a11b40c490
|
data/lib/runabove.rb
CHANGED
|
@@ -9,7 +9,7 @@ class Runabove
|
|
|
9
9
|
|
|
10
10
|
attr_reader :me, :flavor, :image, :instance,
|
|
11
11
|
:labs, :price, :project, :region,
|
|
12
|
-
:ssh, :storage, :time, :token
|
|
12
|
+
:ssh, :storage, :time, :token, :stackMysql
|
|
13
13
|
|
|
14
14
|
def initialize(appkey, secret, consumerkey = "")
|
|
15
15
|
@appkey = appkey
|
|
@@ -34,6 +34,7 @@ class Runabove
|
|
|
34
34
|
@storage = RunaboveStorage.new @appkey, @secret, @consumerkey
|
|
35
35
|
@time = RunaboveTime.new @appkey, @secret, @consumerkey
|
|
36
36
|
@token = RunaboveToken.new @appkey, @secret, @consumerkey
|
|
37
|
+
@stackMysql = RunaboveStackMysql.new @appkey, @secret, @consumerkey
|
|
37
38
|
end
|
|
38
39
|
|
|
39
40
|
def createConsumerKey
|
|
@@ -303,3 +304,25 @@ class RunaboveToken < Runabove
|
|
|
303
304
|
raw_call("get", "/token")
|
|
304
305
|
end
|
|
305
306
|
end
|
|
307
|
+
|
|
308
|
+
class RunaboveStackMysql < Runabove
|
|
309
|
+
def list
|
|
310
|
+
raw_call("get", "/stackMysql")
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
def create(data)
|
|
314
|
+
raw_call("post", "/stackMysql", data)
|
|
315
|
+
end
|
|
316
|
+
|
|
317
|
+
def detail(name)
|
|
318
|
+
raw_call("get", "/stackMysql/#{name}")
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
def delete(name)
|
|
322
|
+
raw_call("delete", "/stackMysql/#{name}")
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
def status(name)
|
|
326
|
+
raw_call("get", "/stackMysql/#{name}/status")
|
|
327
|
+
end
|
|
328
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runabove
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Olivier BONNAURE
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-12-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: A simple runabove wrapper
|
|
14
14
|
email: olivier@solisoft.net
|
|
@@ -17,7 +17,7 @@ extensions: []
|
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
19
|
- lib/runabove.rb
|
|
20
|
-
homepage:
|
|
20
|
+
homepage: http://rubygems.org/gems/runabove
|
|
21
21
|
licenses:
|
|
22
22
|
- MIT
|
|
23
23
|
metadata: {}
|
|
@@ -37,9 +37,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
37
37
|
version: '0'
|
|
38
38
|
requirements: []
|
|
39
39
|
rubyforge_project:
|
|
40
|
-
rubygems_version: 2.
|
|
40
|
+
rubygems_version: 2.4.8
|
|
41
41
|
signing_key:
|
|
42
42
|
specification_version: 4
|
|
43
43
|
summary: runabove wrapper
|
|
44
44
|
test_files: []
|
|
45
|
-
has_rdoc:
|