buildizer 0.0.8 → 0.0.9

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzJlYTY0NmI3OGFiMTRmOGEwMjg4ZmY2YjFkZmFkNTJlZjc5ZDQyZg==
4
+ NmMwYWNlZTljM2Y1ZTk0ZTQ5MTc0N2Q4ODc1NjE5NzY3Y2ViNTY1ZA==
5
5
  data.tar.gz: !binary |-
6
- OTdiYzQ0YWNjYjZmM2VlYmI3Mzk2ZjNlODNkZjFjYmVkOWZkZTY4ZA==
6
+ MzNiNzUzODE5MTg4YzUzZDlkZDc2MGE1NWNhZWY3YThhYjk2MWZmOQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGVlZmNiYzFkN2U3NDM5NWVmZDg0ZDNmNmU0ZjJiN2UxZmE3OTg0YWJlYWIx
10
- NGQwYTg4NTA4MDkzYTdhZDFjYzI3MzJkNGI3MTVlZTNlNDlhZGJjNzhkOGRl
11
- NTA5OGNlN2Y5Y2ZmNzMxOTQ1MDE1OTI1ZDNjZmM1ZTkxODRhNmE=
9
+ NmUzYjBjNzdkZTk0NjY2OGI2MmQwN2UwNjg3YzFjZWY4MWE1NGNjNGUwZjcw
10
+ MTI3MmQxMDdlZjljMzNmYjQxODk4YWEwYTFjZDc0NjRiYTdiMGNiYzk3Y2Jj
11
+ NjQwNzdhOTE2MWVhNTkyM2QwYzM4YWM0YjcyZjVkNTlmYmY5OWM=
12
12
  data.tar.gz: !binary |-
13
- ZTU5ZTRhYTgyOTJhMWQ4ZDY4ZjQ1YWFlZWU3ODk4MGMyOGMyMDgxYTBlZWNh
14
- ZWVjYTE4NzUzMGYzOTIwMTIyMTQ1ZGE2MWI4NTUwYmIxY2JmM2VmZWI5MTM1
15
- OGIxYzJhYzBiNzhhYjE5NjQ1OTZjZDdhZTcxNDEyMWViZWU0YWM=
13
+ NjFlNDA4NzE4ZDJkYTc4NWMzZWIwY2IyZGJkYjZiZGRjZTRiMmUzNTlhOTk0
14
+ MzI1MTliMmJlOTk3OTgzNWQ0ZWZhN2ZhYWFhNzEzYTc3MzM5YjA5ZTY5ZWM5
15
+ NGY4ZGNlYzYzNjc4OTMxZDE0MWEwZTg5ZGQzN2E3ZDNmZjYxZTU=
data/Gemfile.lock CHANGED
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- buildizer (0.0.8)
11
+ buildizer (0.0.9)
12
12
  net_status (>= 0.0.1, < 1.0)
13
13
  overcommit (>= 0.33.0, < 1.0)
14
14
  package_cloud (>= 0.2, < 1.0)
@@ -1,15 +1,11 @@
1
1
  module Buildizer
2
2
  class Packager
3
3
  module MiscMod
4
- def command(*args, do_raise: false, log_failure: nil, **kwargs)
5
- if debug
6
- Shellfold.run(*args, log_failure: log_failure, **kwargs).tap do |cmd|
7
- if not cmd.status.success? and do_raise
8
- raise Error.new(error: :error, message: "external command error")
9
- end
4
+ def command(*args, do_raise: false, **kwargs)
5
+ Shellfold.run(*args, **kwargs).tap do |cmd|
6
+ if not cmd.status.success? and do_raise
7
+ raise Error.new(error: :error, message: "external command error")
10
8
  end
11
- else
12
- raw_command(*args, do_raise: do_raise, **kwargs)
13
9
  end
14
10
  end
15
11
 
@@ -51,9 +47,9 @@ module Buildizer
51
47
  end
52
48
 
53
49
  def with_log(desc: nil, &blk)
54
- puts(" #{desc}") if debug and desc
50
+ puts(" #{desc}") if desc
55
51
  blk.call do |status|
56
- puts("=> #{desc} [#{status || 'OK'}]") if debug and desc
52
+ puts("=> #{desc} [#{status || 'OK'}]") if desc
57
53
  end
58
54
  end
59
55
  end # MiscMod
@@ -1,3 +1,3 @@
1
1
  module Buildizer
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - flant
@@ -227,9 +227,6 @@ extra_rdoc_files: []
227
227
  files:
228
228
  - .gitignore
229
229
  - .travis.yml
230
- - Buildizer.example.1
231
- - Buildizer.example.2
232
- - Buildizer.example.3
233
230
  - Gemfile
234
231
  - Gemfile.lock
235
232
  - README.md
data/Buildizer.example.1 DELETED
@@ -1,44 +0,0 @@
1
- build_type: fpm
2
- package_name: pam_docker
3
-
4
- # package_version: $CI_BUILD_TAG || $TRAVIS_TAG || упасть
5
-
6
- build_deps: git build-essential
7
-
8
- before_prepare:
9
- - curl http://flant.ru/key.gpg | apt-key -
10
-
11
- after_prepare:
12
- - curl http://flant.ru/key.gpg | apt-key -
13
-
14
- fpm_script:
15
- - when: after_remove
16
- what:
17
- - rm /usr/share/pam-configs/docker
18
- - when: after_install, after_upgrade, after_remove
19
- what:
20
- - pam-auth-update --package # <cmd>
21
-
22
- fpm_config_files:
23
- config/security.conf: /etc/security/docker.conf
24
-
25
- fpm_files:
26
- config/docker: /usr/share/pam-configs/docker
27
- pam_docker.so: /lib/security/pam_docker.so
28
-
29
- os:
30
- ubuntu:
31
- build_deps: libpam0g-dev
32
- centos:
33
- build_deps: libpam0g-devel
34
-
35
- #after_patch:
36
- # - rm debian/patches/lalala.patch
37
-
38
- before_build:
39
- - make
40
- - mkdir -p $(pwd)/build
41
- - PREFIX=$(pwd)/build make install
42
-
43
- targets:
44
- ubuntu-14.04-pam_docker: true
data/Buildizer.example.2 DELETED
@@ -1,28 +0,0 @@
1
- os:
2
- ubuntu:
3
- run:
4
- - apt-get install -y git build-essential libpam0g-dev
5
- - git clone https://github.com/flant/pam_docker.git /root/pam_docker
6
-
7
- targets:
8
- ubuntu-14.04-pam_docker:
9
- run:
10
- - cd /root/pam_docker
11
- - make
12
- - echo -e '#!/bin/bash\npam-auth-update --package' > after_install.sh
13
- - cp after_install.sh after_upgrade.sh
14
- - echo -e '#!/bin/bash\nrm /usr/share/pam-configs/docker\npam-auth-update --package' > after_remove.sh
15
- - chmod +x pam_auth_update.sh
16
- - chmod 644 pam_docker.so
17
- - fpm -s dir -t deb -n pam_docker \
18
- --deb-use-file-permissions \
19
- --version 0.0.1-1 \
20
- --after-install pam_auth_update.sh \
21
- --after-upgrade pam_auth_update.sh \
22
- --after-remove pam_config_remove.sh \
23
- --after-remove pam_auth_update.sh \
24
- --config-files /etc/security/docker.conf \
25
- --config-files /usr/share/pam-configs/docker \
26
- pam_docker.so=/lib/security/pam_docker.so \
27
- config/security.conf=/etc/security/docker.conf \
28
- config/docker=/usr/share/pam-configs/docker
data/Buildizer.example.3 DELETED
@@ -1,15 +0,0 @@
1
- package_name: pam_docker
2
- # => package_version: 0.0.1-1
3
-
4
- os:
5
- ubuntu:
6
- package_name: pam_docker_for_ubuntu
7
- ubuntu-14.04:
8
- package_name: pam_docker_14.04
9
-
10
- target:
11
- - ubuntu # => package: ubuntu-14.04-pam_docker_14.04-0.0.1-1, image: buildizer/ubuntu/14.04/pam_docker
12
- - ubuntu-12.04 # => ubuntu-12.04.pam_docker_for_ubuntu-0.0.1-1
13
- - centos # => centos-centos7-pam_docker-0.0.1-1
14
- - centos-centos6-pam_huyam # => centos-centos6-pam_huyam-0.0.1-1
15
- # версию переопределить нельзя