dpl 1.9.1.travis.2711.5 → 1.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +3 -0
- data/Rakefile +24 -3
- data/dpl-puppet_forge.gemspec +1 -1
- data/lib/dpl/version.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 422e1b8c1dbfdc55c7c37f7d5a74da489c935812
|
4
|
+
data.tar.gz: f443c1a5bced981d345a0c73e468766c3182d4f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b70ce5bbc0eda8eb20fef074e083b887bdf88a936ae00c575ac1b94cd49ae592c998ba528a0cde0b26f7f75cd2192859b59cc2e3ae134393f0e4886ffcf0b4
|
7
|
+
data.tar.gz: fbcbbd7bae3df5f25e659bce95e2779e06630bef77a49abd33195a4ca2ce2954393fa0a8bff62d0285c34690b10490481d2627e66514ee4cd5c7ee4b6125f31c
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -36,6 +36,10 @@ def confirm(verb = "release")
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
+
def dpl_bin
|
40
|
+
File.join(Gem.bindir, 'dpl')
|
41
|
+
end
|
42
|
+
|
39
43
|
gemspecs = FileList[File.join(top, "dpl-*.gemspec")]
|
40
44
|
|
41
45
|
providers = gemspecs.map { |f| /dpl-(?<provider>.*)\.gemspec/ =~ f && provider }
|
@@ -66,6 +70,15 @@ task :build => "dpl-#{gem_version}.gem" do
|
|
66
70
|
end
|
67
71
|
end
|
68
72
|
|
73
|
+
desc "Uninstall all gems"
|
74
|
+
task :uninstall do
|
75
|
+
providers.each do |provider|
|
76
|
+
Rake::Task["uninstall-#{provider}"].invoke
|
77
|
+
end
|
78
|
+
logger.info red("Uninstalling dpl")
|
79
|
+
sh "gem uninstall -aIx dpl"
|
80
|
+
end
|
81
|
+
|
69
82
|
desc "Release all gems"
|
70
83
|
task :release do
|
71
84
|
confirm
|
@@ -95,6 +108,8 @@ end
|
|
95
108
|
task :clean do
|
96
109
|
rm_rf "stubs"
|
97
110
|
rm_rf "vendor"
|
111
|
+
rm_rf "dpl-*.gem"
|
112
|
+
Rake::Task[:uninstall].invoke
|
98
113
|
end
|
99
114
|
|
100
115
|
desc "Run dpl specs"
|
@@ -109,7 +124,7 @@ file "dpl-#{gem_version}.gem" do
|
|
109
124
|
end
|
110
125
|
|
111
126
|
desc "Install dpl gem"
|
112
|
-
|
127
|
+
file dpl_bin => "dpl-#{gem_version}.gem" do
|
113
128
|
logger.info green("Installing dpl gem")
|
114
129
|
ruby "-S gem install dpl-#{gem_version}.gem"
|
115
130
|
end
|
@@ -123,7 +138,7 @@ providers.each do |provider|
|
|
123
138
|
end
|
124
139
|
|
125
140
|
desc %Q(Run dpl-#{provider} specs)
|
126
|
-
task "spec-#{provider}" => [
|
141
|
+
task "spec-#{provider}" => [Rake::FileTask[dpl_bin], "Gemfile-#{provider}"] do
|
127
142
|
sh "rm -f $HOME/.npmrc"
|
128
143
|
logger.info green("Running `bundle install` for #{provider}")
|
129
144
|
sh 'bash', '-cl', "bundle install --gemfile=Gemfile-#{provider} --path=vendor/cache/dpl-#{provider} --retry=3 --binstubs=stubs"
|
@@ -138,13 +153,19 @@ providers.each do |provider|
|
|
138
153
|
end
|
139
154
|
|
140
155
|
desc "Test dpl-#{provider} gem"
|
141
|
-
task "check-#{provider}" => [
|
156
|
+
task "check-#{provider}" => [Rake::FileTask[dpl_bin], "dpl-#{provider}-#{gem_version}.gem"] do
|
142
157
|
logger.info green("Installing dpl-#{provider} gem")
|
143
158
|
sh "gem install --no-post-install-message dpl-#{provider}-#{gem_version}.gem"
|
144
159
|
logger.info green("Testing dpl-#{provider} loads correctly")
|
145
160
|
ruby "-S dpl --provider=#{provider} --skip-cleanup=true --no-deploy"
|
146
161
|
end
|
147
162
|
|
163
|
+
desc "Uninstall dpl-#{provider}"
|
164
|
+
task "uninstall-#{provider}" do
|
165
|
+
logger.info red("Uninstalling dpl-#{provider}")
|
166
|
+
sh "gem uninstall -aIx dpl-#{provider}"
|
167
|
+
end
|
168
|
+
|
148
169
|
desc "Release dpl-#{provider} gem"
|
149
170
|
task "release-#{provider}" => "dpl-#{provider}-#{gem_version}.gem" do
|
150
171
|
confirm
|
data/dpl-puppet_forge.gemspec
CHANGED
data/lib/dpl/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dpl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.1
|
4
|
+
version: 1.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -191,13 +191,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '2.2'
|
192
192
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
|
-
- - "
|
194
|
+
- - ">="
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version:
|
196
|
+
version: '0'
|
197
197
|
requirements: []
|
198
198
|
rubyforge_project:
|
199
|
-
rubygems_version: 2.
|
199
|
+
rubygems_version: 2.6.13
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: deploy tool
|
203
|
-
test_files:
|
203
|
+
test_files:
|
204
|
+
- spec/cli_spec.rb
|
205
|
+
- spec/provider_spec.rb
|
206
|
+
- spec/spec_helper.rb
|