RaaS 0.0.2 → 0.0.3
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 +8 -8
- data/lib/RaaSmain.rb +17 -4
- data/lib/modules/RaaSCore.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDM4NmVkNWJiMDFkMWUzYTQzOTgzYTZhYTk3NDE5ODg4MmIyMDk5Mw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
YTg0ZDExNjMwNjA2YzFjOWE5OGRiOTAyN2NkOWJiMjRkYjE1OWYwZQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NDgwNjUyOGUxYWEwNjhkMzQwNjljMjFlZDc2YzRiNjI1ZTZhYzI4YzllYjQ4
|
|
10
|
+
ZWIwMDJmYjg5ZjkwZjJhNjY2YmY5ZTYxODZjNzczZWMwZDE5MDlkYmVlOWMx
|
|
11
|
+
NGRmNTk5NGQ4Y2IzZDE4NWY3YTFlYzVkYTcwYTA4ZmQ1N2FhNWY=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
ZmQ1ZGQyNWM5MmU2MWVkOGZmNDY5NzVlMDI2NjU1YTUxOTJhMTFhOWE1YTdk
|
|
14
|
+
YjZjMTUxZDU0YjRhNjExMjYyOWNjNDU5MGFhMDZjZDMyNjRiOGUyM2FhMTQ3
|
|
15
|
+
YjcyZjJkY2U5Yzk5NTMwZDk0YWM4ODNkMDg1OTgzOGUyNTA3ZjQ=
|
data/lib/RaaSmain.rb
CHANGED
|
@@ -11,8 +11,21 @@
|
|
|
11
11
|
#### It leverages the RaaSCore library ####
|
|
12
12
|
#### Per best practices I keep the logic separate from the presentation ####
|
|
13
13
|
#################################################################################
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
#################################################################################
|
|
17
|
+
#### IMPORTANT !! ####
|
|
18
|
+
#### The program reads a file called RaaSCLI.yml in the working directory ####
|
|
19
|
+
#### If the file does not exist the program will abort ####
|
|
20
|
+
#### The file is used to provide the program with connectivity parameters ####
|
|
21
|
+
#################################################################################
|
|
22
|
+
|
|
23
|
+
# This is the format of the RaaSCLI.yml file:
|
|
24
|
+
# :username: email@domain@OrgName
|
|
25
|
+
# :password: password
|
|
26
|
+
# :site: https://vcd-url
|
|
27
|
+
|
|
28
|
+
|
|
16
29
|
# These are the additional modules/gems required to run the program
|
|
17
30
|
|
|
18
31
|
require 'httparty'
|
|
@@ -59,6 +72,7 @@ def usage
|
|
|
59
72
|
puts "\te.g. #{$PROGRAM_NAME} failover <VM name>"
|
|
60
73
|
puts "\te.g. #{$PROGRAM_NAME} failover ALL"
|
|
61
74
|
puts "\n"
|
|
75
|
+
|
|
62
76
|
end
|
|
63
77
|
|
|
64
78
|
|
|
@@ -81,8 +95,7 @@ if $operation
|
|
|
81
95
|
|
|
82
96
|
puts "Logging in ...\n\n"
|
|
83
97
|
raas.login
|
|
84
|
-
|
|
85
|
-
|
|
98
|
+
|
|
86
99
|
|
|
87
100
|
# Here we check what operations a user wants the CLI to execute. Every operations calls a particular method
|
|
88
101
|
# and prints the result returned from the method
|
data/lib/modules/RaaSCore.rb
CHANGED
|
@@ -21,7 +21,6 @@ class RaaS
|
|
|
21
21
|
#### The file is used to provide the program with connectivity parameters ####
|
|
22
22
|
#################################################################################
|
|
23
23
|
|
|
24
|
-
|
|
25
24
|
# This is the format of the RaaSCLI.yml file:
|
|
26
25
|
# :username: email@domain@OrgName
|
|
27
26
|
# :password: password
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: RaaS
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Massimo Re Ferrè
|
|
@@ -65,7 +65,7 @@ files:
|
|
|
65
65
|
- bin/RaaSCLI
|
|
66
66
|
homepage: http://it20.info
|
|
67
67
|
licenses:
|
|
68
|
-
-
|
|
68
|
+
- MIT
|
|
69
69
|
metadata: {}
|
|
70
70
|
post_install_message:
|
|
71
71
|
rdoc_options: []
|