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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f707ed0657b4714d685b8430fc3b29b8d941373e
4
- data.tar.gz: e3366df7e2408f5932631877ec9cbbf5c9b8fbc8
3
+ metadata.gz: f8cb153e8157def4c77fce7141b534dd5cebbec1
4
+ data.tar.gz: a182fcd0abf52bc8d094db667d85ea82f7e8179e
5
5
  SHA512:
6
- metadata.gz: 9651c55c3be75ea4d99ca8577f6a205f3231f0930fef12bb4361824bcda99b9cf0e17bf53fe001f783fc0f843341c12fb160bea43c89520d5bfae3a1f2ba3e7a
7
- data.tar.gz: d31e13aadf3cd4eeb66efc5b02d7425873d3035a1674da296c15ed71207599df852768d6f31b45cce04f67d9a8a85897876831a43a979a89d8133d7b877d8d0c
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.7.2'
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', :path => '.'
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
- ['DO_CLIENT_ID', 'DO_API_KEY', 'VAGRANT_LOG'].inject('') do |acc, key|
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module OneCloud
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
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>
@@ -8,7 +8,7 @@ Vagrant.configure('2') do |config|
8
8
  override.vm.hostname = 'test'
9
9
  override.vm.provision :shell, :path => 'scripts/provision.sh'
10
10
 
11
- provider.token = ENV['DO_TOKEN']
11
+ provider.token = ENV['OC_TOKEN']
12
12
  end
13
13
  end
14
14
  end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env bash
2
+
2
3
  cd test
3
4
 
4
5
  bundle exec vagrant up --provider=onecloud
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.0
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: 2017-07-12 00:00:00.000000000 Z
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.6.8
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.
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- vagrant-1cloud.iml
11
- /.idea/
12
- /.svn/
13
- .rake_tasks~