vagrant-simple_cloud 1.0.2 → 1.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 +4 -4
- data/build.sh +23 -3
- data/lib/vagrant-simple_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee400cf0df28305ec7bf6689b26e8b0310e6da11
|
4
|
+
data.tar.gz: 4f3b704e62b399208ce6db31df078f99e4507d3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f0d724d9e510b4c94aa6e4fc6867aa0a3ec953be338b5d2e74a9fe12a5f0c2cee50c317d8da3ec37dcecc1d8b5a167f306b33980d04bc784842e861724a1b21
|
7
|
+
data.tar.gz: 844a16b04e5e03fbeffd18fb3119d4959a94134ece9c7b85dbe8942742caca420a3c74e31017e68a690456adf34cd8bf5a97413cf5c3694fd1963325c2f5c284
|
data/build.sh
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
2
|
|
3
3
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
4
|
+
PROVIDER="simple_cloud"
|
4
5
|
PLUGIN_NAME="vagrant-simple_cloud"
|
5
6
|
PLUGIN_VERSION=$(cat ${DIR}/lib/${PLUGIN_NAME}/version.rb | grep VERSION | awk -F= '{gsub(" ","");gsub("'\''","");print $2}')
|
6
7
|
|
@@ -15,17 +16,36 @@ docker exec -i ${BUILDER_ID} bash -c "cd /tmp/${PLUGIN_NAME} && \
|
|
15
16
|
git init && \
|
16
17
|
git add . && \
|
17
18
|
bundle config git.allow_insecure true && \
|
18
|
-
bundle
|
19
|
+
bundle && \
|
19
20
|
bundle exec rake gem:build && \
|
20
21
|
bundle exec rake gem:install && \
|
21
22
|
bundle exec rake test && \
|
22
23
|
gem push pkg/${PLUGIN_NAME}-${PLUGIN_VERSION}.gem"
|
23
24
|
if [ $? -ne 0 ]; then
|
24
|
-
echo "${PLUGIN_NAME} plugin was not built successfully!"
|
25
|
+
echo "${PLUGIN_NAME} plugin was not built and released successfully!"
|
25
26
|
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
26
27
|
exit 1
|
27
28
|
fi
|
28
29
|
|
29
|
-
echo "${PLUGIN_NAME} plugin was built successfully."
|
30
|
+
echo "${PLUGIN_NAME} plugin was built and released successfully."
|
31
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
32
|
+
|
33
|
+
BUILDER_ID=$(docker run -it -d --rm --label ${PLUGIN_NAME} docker.avtodoria.dev:5043/test/vagrant)
|
34
|
+
docker exec -i ${BUILDER_ID} bash -c "vagrant plugin install ${PLUGIN_NAME} --plugin-version ${PLUGIN_VERSION}"
|
35
|
+
if [ $? -ne 0 ]; then
|
36
|
+
echo "${PLUGIN_NAME} plugin was not installed successfully!"
|
37
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
38
|
+
exit 2
|
39
|
+
fi
|
40
|
+
|
41
|
+
docker cp ${DIR}/test/Vagrantfile ${BUILDER_ID}:/tmp/
|
42
|
+
RESULT=$(docker exec -i ${BUILDER_ID} bash -c "cd /tmp/ && vagrant up --provider=${PROVIDER}" 2>&1)
|
43
|
+
if [[ ! ${RESULT} =~ "The response status from the API" ]]; then
|
44
|
+
echo "${PLUGIN_NAME} plugin does not work correctly!"
|
45
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
46
|
+
exit 3
|
47
|
+
fi
|
48
|
+
|
49
|
+
echo "${PLUGIN_NAME} plugin was tested successfully."
|
30
50
|
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
31
51
|
exit 0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-simple_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bender
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-11-
|
13
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: faraday
|