packager-dsl 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -0
- data/Changes +4 -0
- data/Gemfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/packager +0 -0
- data/lib/packager.rb +0 -0
- data/lib/packager/cli.rb +0 -0
- data/lib/packager/dsl.rb +0 -0
- data/lib/packager/executor.rb +2 -1
- data/lib/packager/struct.rb +0 -0
- data/lib/packager/version.rb +1 -1
- data/on_what.rb +0 -0
- data/packager.gemspec +0 -0
- data/spec/cli/context.rb +0 -0
- data/spec/cli/execute_spec.rb +0 -0
- data/spec/cli/validate_spec.rb +0 -0
- data/spec/cli/version_spec.rb +0 -0
- data/spec/dsl/add_helper_spec.rb +0 -0
- data/spec/dsl/args_spec.rb +0 -0
- data/spec/dsl/context.rb +0 -0
- data/spec/dsl/defaults_spec.rb +0 -0
- data/spec/dsl/dependency_spec.rb +0 -0
- data/spec/dsl/error_spec.rb +0 -0
- data/spec/dsl/files_spec.rb +0 -0
- data/spec/executor/basic_spec.rb +0 -0
- data/spec/executor/command_spec.rb +0 -0
- data/spec/executor/context.rb +0 -0
- data/spec/executor/dependency_spec.rb +0 -0
- data/spec/executor/execute_command_spec.rb +10 -1
- data/spec/executor/files_spec.rb +0 -0
- data/spec/fpm-test_spec.rb +0 -0
- data/spec/integration/context.rb +0 -0
- data/spec/integration/dependency_spec.rb +0 -0
- data/spec/integration/files_spec.rb +0 -0
- data/spec/lib/fpm/package/test.rb +0 -0
- data/spec/shared_context/workdir.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- data/spec/struct/command_spec.rb +0 -0
- data/spec/struct/error_spec.rb +0 -0
- 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: f37ca22d5284e5a2e98f3313fb0c2d8dc226f727
|
4
|
+
data.tar.gz: 36801466d13b1b374f951f653237f23cb09c5eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54a724e39a81ec9cd4812ed4b465ed06b4a89834e8f48f7cebc8f2bd0f211ee0d869d559c681285982c5259b1e6abe83c8ccd061ea6abd1584445f21e30af566
|
7
|
+
data.tar.gz: 83d248d079008365917650356dcdc943fc2d685136b45490f19b734fb901f956f73a490d6ef52f0314ff56128a240d53a55aa835fafdda2670d4d6a9a167a24e
|
data/.rspec
CHANGED
File without changes
|
data/Changes
CHANGED
data/Gemfile
CHANGED
File without changes
|
data/LICENSE
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/bin/packager
CHANGED
File without changes
|
data/lib/packager.rb
CHANGED
File without changes
|
data/lib/packager/cli.rb
CHANGED
File without changes
|
data/lib/packager/dsl.rb
CHANGED
File without changes
|
data/lib/packager/executor.rb
CHANGED
@@ -37,7 +37,7 @@ class Packager
|
|
37
37
|
dest = (file.dest || '').gsub /^\//, ''
|
38
38
|
FileUtils.mkdir_p File.dirname(dest)
|
39
39
|
if file.link
|
40
|
-
FileUtils.ln_s(file.source, dest)
|
40
|
+
FileUtils.ln_s(file.source, dest, force: true)
|
41
41
|
else
|
42
42
|
FileUtils.cp_r(file.source, dest)
|
43
43
|
end
|
@@ -75,6 +75,7 @@ class Packager
|
|
75
75
|
x = `#{cmd.to_system.join(' ')}`
|
76
76
|
rv = eval(x)
|
77
77
|
raise rv[:error] if rv[:error]
|
78
|
+
raise rv[:message] if rv[:level] == :error
|
78
79
|
return rv[:path]
|
79
80
|
end
|
80
81
|
end
|
data/lib/packager/struct.rb
CHANGED
File without changes
|
data/lib/packager/version.rb
CHANGED
data/on_what.rb
CHANGED
File without changes
|
data/packager.gemspec
CHANGED
File without changes
|
data/spec/cli/context.rb
CHANGED
File without changes
|
data/spec/cli/execute_spec.rb
CHANGED
File without changes
|
data/spec/cli/validate_spec.rb
CHANGED
File without changes
|
data/spec/cli/version_spec.rb
CHANGED
File without changes
|
data/spec/dsl/add_helper_spec.rb
CHANGED
File without changes
|
data/spec/dsl/args_spec.rb
CHANGED
File without changes
|
data/spec/dsl/context.rb
CHANGED
File without changes
|
data/spec/dsl/defaults_spec.rb
CHANGED
File without changes
|
data/spec/dsl/dependency_spec.rb
CHANGED
File without changes
|
data/spec/dsl/error_spec.rb
CHANGED
File without changes
|
data/spec/dsl/files_spec.rb
CHANGED
File without changes
|
data/spec/executor/basic_spec.rb
CHANGED
File without changes
|
File without changes
|
data/spec/executor/context.rb
CHANGED
File without changes
|
File without changes
|
@@ -6,7 +6,7 @@ describe Packager::Executor do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
context "#execute_command" do
|
9
|
-
it "handles errors" do
|
9
|
+
it "handles errors indicated by the presence of :error key" do
|
10
10
|
cmd = Packager::Struct::TestCommand.new(
|
11
11
|
:command => ["echo '{:error=>\"foo\"}'"]
|
12
12
|
)
|
@@ -15,6 +15,15 @@ describe Packager::Executor do
|
|
15
15
|
}.to raise_error('foo')
|
16
16
|
end
|
17
17
|
|
18
|
+
it "handles errors indicated by the presence of :level=>:error" do
|
19
|
+
cmd = Packager::Struct::TestCommand.new(
|
20
|
+
:command => ["echo '{:message=>\"foo\", :level=>:error}'"]
|
21
|
+
)
|
22
|
+
expect {
|
23
|
+
subject.execute_command(cmd)
|
24
|
+
}.to raise_error('foo')
|
25
|
+
end
|
26
|
+
|
18
27
|
it "handles success" do
|
19
28
|
cmd = Packager::Struct::TestCommand.new(
|
20
29
|
:command => ["echo '{:path=>\"foo\"}'"]
|
data/spec/executor/files_spec.rb
CHANGED
File without changes
|
data/spec/fpm-test_spec.rb
CHANGED
File without changes
|
data/spec/integration/context.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
data/spec/struct/command_spec.rb
CHANGED
File without changes
|
data/spec/struct/error_spec.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packager-dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Kinyon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dsl_maker
|