pups 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/Rakefile +5 -1
- data/lib/pups/file_command.rb +6 -2
- data/lib/pups/version.rb +1 -1
- data/pups.gemspec +3 -3
- data/test/test_helper.rb +1 -2
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6637fcde0de413ee3d9925e644f84547563f86ba44d67692daa9f431520ab598
|
4
|
+
data.tar.gz: 52ed370e7071a7eb53cd87bc455dec4f48ca84c691ac28f1429e6985673a4d21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc4828cccbe30f2d64d265c5bbed1558e17754a1866ebee549fc590eb26e80de8388deb40905fd3715af029e68c7e5592520b6eaeb1a61904f36114fae1f49ff
|
7
|
+
data.tar.gz: 9f5da00c947a36c01d574a497afad7f9d218870ab898195d2427622817b0f260f3e8ccf2650113ba0f20bf585d9673a80af9d6174d81b4cd6301cacfa3ce84af
|
data/CHANGELOG
ADDED
data/Rakefile
CHANGED
data/lib/pups/file_command.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
class Pups::FileCommand < Pups::Command
|
2
|
-
attr_accessor :path, :contents, :params, :type, :chmod
|
2
|
+
attr_accessor :path, :contents, :params, :type, :chmod, :chown
|
3
3
|
|
4
4
|
def self.from_hash(hash, params)
|
5
5
|
command = new
|
6
6
|
command.path = hash["path"]
|
7
7
|
command.contents = hash["contents"]
|
8
8
|
command.chmod = hash["chmod"]
|
9
|
+
command.chown = hash["chown"]
|
9
10
|
command.params = params
|
10
11
|
|
11
12
|
command
|
@@ -30,7 +31,10 @@ class Pups::FileCommand < Pups::Command
|
|
30
31
|
if @chmod
|
31
32
|
`chmod #{@chmod} #{path}`
|
32
33
|
end
|
33
|
-
|
34
|
+
if @chown
|
35
|
+
`chown #{@chown} #{path}`
|
36
|
+
end
|
37
|
+
Pups.log.info("File > #{path} chmod: #{@chmod} chown: #{@chown}")
|
34
38
|
end
|
35
39
|
|
36
40
|
end
|
data/lib/pups/version.rb
CHANGED
data/pups.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Pups::VERSION
|
9
9
|
spec.authors = ["Sam Saffron"]
|
10
10
|
spec.email = ["sam.saffron@gmail.com"]
|
11
|
-
spec.description = %q{
|
12
|
-
spec.summary = %q{
|
11
|
+
spec.description = %q{Simple docker image creator}
|
12
|
+
spec.summary = %q{Toolkit for orchestrating a composed docker image}
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "minitest"
|
24
24
|
spec.add_development_dependency "guard"
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pups
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +80,7 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description:
|
83
|
+
description: Simple docker image creator
|
84
84
|
email:
|
85
85
|
- sam.saffron@gmail.com
|
86
86
|
executables:
|
@@ -89,6 +89,7 @@ extensions: []
|
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
91
|
- ".gitignore"
|
92
|
+
- CHANGELOG
|
92
93
|
- Gemfile
|
93
94
|
- Guardfile
|
94
95
|
- LICENSE.txt
|
@@ -116,7 +117,7 @@ homepage: ''
|
|
116
117
|
licenses:
|
117
118
|
- MIT
|
118
119
|
metadata: {}
|
119
|
-
post_install_message:
|
120
|
+
post_install_message:
|
120
121
|
rdoc_options: []
|
121
122
|
require_paths:
|
122
123
|
- lib
|
@@ -131,11 +132,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
132
|
- !ruby/object:Gem::Version
|
132
133
|
version: '0'
|
133
134
|
requirements: []
|
134
|
-
|
135
|
-
|
136
|
-
signing_key:
|
135
|
+
rubygems_version: 3.2.2
|
136
|
+
signing_key:
|
137
137
|
specification_version: 4
|
138
|
-
summary:
|
138
|
+
summary: Toolkit for orchestrating a composed docker image
|
139
139
|
test_files:
|
140
140
|
- test/config_test.rb
|
141
141
|
- test/exec_command_test.rb
|