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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 724fccdfc6f25703b9d8aa25c12a71f4559a7b4d
4
- data.tar.gz: 4baab9e42a6774f8e16c88783fc1942952234ee6
3
+ metadata.gz: ee400cf0df28305ec7bf6689b26e8b0310e6da11
4
+ data.tar.gz: 4f3b704e62b399208ce6db31df078f99e4507d3c
5
5
  SHA512:
6
- metadata.gz: 816721d0a018a04c94c1812244ab5c4a58d646581b83f7c6ce554dca9f6f6299055c1fc3ff300f5b6e5159cd4ad8091aa5c3295e1c43b710ebfe23b9df61bc10
7
- data.tar.gz: bd2b563b4b7cbe1ca491641e4daa2468220b99edc383079300c519dbab4aeac4c9226fc755d14b53f132f72d49ce033c26d96d775da2fc798728206d4628aeaf
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 install && \
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module SimpleCloud
3
- VERSION = '1.0.2'
3
+ VERSION = '1.0.3'
4
4
  end
5
5
  end
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.2
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-08 00:00:00.000000000 Z
13
+ date: 2018-11-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: faraday