vagrant-1cloud 1.1.0 → 1.1.1
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/Gemfile +3 -5
- data/Rakefile +2 -3
- data/build.sh +32 -0
- data/lib/vagrant-1cloud/version.rb +1 -1
- data/pom.xml +59 -0
- data/test/Vagrantfile +1 -1
- data/test/test.sh +1 -0
- metadata +5 -4
- data/.gitignore +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8cb153e8157def4c77fce7141b534dd5cebbec1
|
4
|
+
data.tar.gz: a182fcd0abf52bc8d094db667d85ea82f7e8179e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ad9e8961d8f4e8c557341252474cc6df9987e2814d5f646b8ac41c7c1cbd7eab17932f84014a0d37f3bf8cfb9102633a43f4e3db87ac87b177b3f79e0b6bf7
|
7
|
+
data.tar.gz: 022d8a0d51fb826c097e045170cbf192ae1ede02014415df26b7af573992b6caa019560c3854575135fda5f4d7a48f19d0ab126e21a6abe8044503dbfcb6b6be
|
data/Gemfile
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.
|
3
|
+
gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.9.1'
|
4
4
|
gem 'rake'
|
5
5
|
|
6
6
|
group :plugins do
|
7
|
-
gem 'vagrant-1cloud', :
|
8
|
-
end
|
9
|
-
|
10
|
-
gemspec
|
7
|
+
gem 'vagrant-1cloud', path: "."
|
8
|
+
end
|
data/Rakefile
CHANGED
@@ -6,7 +6,6 @@ end
|
|
6
6
|
|
7
7
|
task :test do
|
8
8
|
result = sh 'bash test/test.sh'
|
9
|
-
|
10
9
|
if result
|
11
10
|
puts 'Success!'
|
12
11
|
else
|
@@ -16,7 +15,7 @@ task :test do
|
|
16
15
|
end
|
17
16
|
|
18
17
|
def env
|
19
|
-
['
|
18
|
+
['OC_CLIENT_ID', 'OC_API_KEY', 'VAGRANT_LOG'].inject('') do |acc, key|
|
20
19
|
acc += "#{key}=#{ENV[key] || 'error'} "
|
21
20
|
end
|
22
|
-
end
|
21
|
+
end
|
data/build.sh
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
4
|
+
PLUGIN_NAME="vagrant-1cloud"
|
5
|
+
PLUGIN_VERSION=$(cat ${DIR}/lib/${PLUGIN_NAME}/version.rb | grep VERSION | awk -F= '{gsub(" ","");gsub("'\''","");print $2}')
|
6
|
+
|
7
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
8
|
+
|
9
|
+
docker pull docker.avtodoria.dev:5043/test/vagrant
|
10
|
+
BUILDER_ID=$(docker run -it -d --rm --label ${PLUGIN_NAME} docker.avtodoria.dev:5043/test/vagrant)
|
11
|
+
|
12
|
+
docker cp ${DIR}/../${PLUGIN_NAME} ${BUILDER_ID}:/tmp/
|
13
|
+
|
14
|
+
docker exec -i ${BUILDER_ID} bash -c "cd /tmp/${PLUGIN_NAME} && \
|
15
|
+
git init && \
|
16
|
+
bundle config git.allow_insecure true && \
|
17
|
+
bundle install && \
|
18
|
+
bundle exec rake gem:build && \
|
19
|
+
bundle exec rake gem:install && \
|
20
|
+
bundle exec rake test"
|
21
|
+
if [ $? -ne 0 ]; then
|
22
|
+
echo "${PLUGIN_NAME} plugin was not built successfully!"
|
23
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
24
|
+
exit 1
|
25
|
+
fi
|
26
|
+
|
27
|
+
mkdir -p ${DIR}/package
|
28
|
+
docker cp ${BUILDER_ID}:/tmp/${PLUGIN_NAME}/pkg/${PLUGIN_NAME}-${PLUGIN_VERSION}.gem ${DIR}/package/${PLUGIN_NAME}.gem
|
29
|
+
|
30
|
+
echo "${PLUGIN_NAME} plugin was built successfully."
|
31
|
+
docker stop $(docker ps -a -q --filter label=${PLUGIN_NAME})
|
32
|
+
exit 0
|
data/pom.xml
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
4
|
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
5
|
+
<modelVersion>4.0.0</modelVersion>
|
6
|
+
|
7
|
+
<groupId>com.avtodoria.dc.docker</groupId>
|
8
|
+
<artifactId>app.vagrant-1cloud</artifactId>
|
9
|
+
<name>docker.app.vagrant-1cloud</name>
|
10
|
+
<packaging>pom</packaging>
|
11
|
+
<version>2.0.0-SNAPSHOT</version>
|
12
|
+
|
13
|
+
<dependencies>
|
14
|
+
|
15
|
+
<dependency>
|
16
|
+
<groupId>com.avtodoria.dc.vagrant-plugins</groupId>
|
17
|
+
<artifactId>vagrant-1cloud</artifactId>
|
18
|
+
<type>gem</type>
|
19
|
+
<version>2.0.0-SNAPSHOT</version>
|
20
|
+
</dependency>
|
21
|
+
|
22
|
+
</dependencies>
|
23
|
+
|
24
|
+
<build>
|
25
|
+
<plugins>
|
26
|
+
<plugin>
|
27
|
+
<groupId>org.apache.maven.plugins</groupId>
|
28
|
+
<artifactId>maven-dependency-plugin</artifactId>
|
29
|
+
<executions>
|
30
|
+
<execution>
|
31
|
+
<id>vagrant-1cloud</id>
|
32
|
+
<phase>package</phase>
|
33
|
+
<goals>
|
34
|
+
<goal>copy</goal>
|
35
|
+
</goals>
|
36
|
+
<configuration>
|
37
|
+
<artifactItems>
|
38
|
+
<artifactItem>
|
39
|
+
<groupId>com.avtodoria.dc.vagrant-plugins</groupId>
|
40
|
+
<artifactId>vagrant-1cloud</artifactId>
|
41
|
+
<version>2.0.0-SNAPSHOT</version>
|
42
|
+
<type>gem</type>
|
43
|
+
<overWrite>true</overWrite>
|
44
|
+
<destFileName>vagrant-1cloud.gem</destFileName>
|
45
|
+
</artifactItem>
|
46
|
+
</artifactItems>
|
47
|
+
<outputDirectory>
|
48
|
+
${project.build.directory}
|
49
|
+
</outputDirectory>
|
50
|
+
<overWriteIfNewer>true</overWriteIfNewer>
|
51
|
+
<overWriteSnapshots>true</overWriteSnapshots>
|
52
|
+
</configuration>
|
53
|
+
</execution>
|
54
|
+
</executions>
|
55
|
+
</plugin>
|
56
|
+
</plugins>
|
57
|
+
</build>
|
58
|
+
|
59
|
+
</project>
|
data/test/Vagrantfile
CHANGED
data/test/test.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-1cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bulat Yusupov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -59,11 +59,11 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".gitignore"
|
63
62
|
- Gemfile
|
64
63
|
- LICENSE
|
65
64
|
- README.md
|
66
65
|
- Rakefile
|
66
|
+
- build.sh
|
67
67
|
- lib/vagrant-1cloud.rb
|
68
68
|
- lib/vagrant-1cloud/actions.rb
|
69
69
|
- lib/vagrant-1cloud/actions/check_state.rb
|
@@ -90,6 +90,7 @@ files:
|
|
90
90
|
- lib/vagrant-1cloud/provider.rb
|
91
91
|
- lib/vagrant-1cloud/version.rb
|
92
92
|
- locales/en.yml
|
93
|
+
- pom.xml
|
93
94
|
- test/Vagrantfile
|
94
95
|
- test/scripts/provision.sh
|
95
96
|
- test/test.sh
|
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
version: '0'
|
116
117
|
requirements: []
|
117
118
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.5.2.1
|
119
120
|
signing_key:
|
120
121
|
specification_version: 4
|
121
122
|
summary: Enables Vagrant to manage 1cloud droplets. Based on https://github.com/devopsgroup-io/vagrant-digitalocean.
|