yast-rake 0.2.36 → 0.2.41
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/data/index.html +27 -0
- data/data/targets.yml +17 -2
- data/lib/tasks/actions.rake +44 -0
- data/lib/tasks/container_runner.rb +80 -0
- data/lib/tasks/github_actions/github_actions.rb +33 -0
- data/lib/tasks/github_actions/github_actions/colorizer.rb +80 -0
- data/lib/tasks/github_actions/github_actions/container.rb +162 -0
- data/lib/tasks/github_actions/github_actions/job.rb +50 -0
- data/lib/tasks/github_actions/github_actions/job_runner.rb +112 -0
- data/lib/tasks/github_actions/github_actions/step.rb +60 -0
- data/lib/tasks/github_actions/github_actions/workflow.rb +53 -0
- data/lib/tasks/github_actions/tasks.rb +24 -0
- data/lib/tasks/github_actions/tasks/details.rb +50 -0
- data/lib/tasks/github_actions/tasks/list.rb +37 -0
- data/lib/tasks/github_actions/tasks/run.rb +82 -0
- data/lib/tasks/github_actions/tasks/run_all.rb +111 -0
- data/lib/tasks/pot.rake +38 -15
- data/lib/tasks/run.rake +11 -0
- data/lib/tasks/server.rake +34 -0
- data/lib/yast/index_servlet.rb +36 -0
- data/lib/yast/servers_servlet.rb +47 -0
- data/lib/yast/tarball_server.rb +109 -0
- data/lib/yast/tarball_servlet.rb +55 -0
- metadata +24 -3
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
#--
|
4
|
+
# Yast rake
|
5
|
+
#
|
6
|
+
# Copyright (C) 2020, SUSE LLC
|
7
|
+
# This library is free software; you can redistribute it and/or modify
|
8
|
+
# it only under the terms of version 2.1 of the GNU Lesser General Public
|
9
|
+
# License as published by the Free Software Foundation.
|
10
|
+
#
|
11
|
+
# This library is distributed in the hope that it will be useful, but WITHOUT
|
12
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
13
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
14
|
+
# details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU Lesser General Public
|
17
|
+
# License along with this library; if not, write to the Free Software
|
18
|
+
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
19
|
+
#++
|
20
|
+
|
21
|
+
require "webrick"
|
22
|
+
|
23
|
+
module Yast
|
24
|
+
# a webrick servlet which dynamically creates a tarball
|
25
|
+
# with the content of the current Git checkout
|
26
|
+
class TarballServlet < WEBrick::HTTPServlet::AbstractServlet
|
27
|
+
def do_GET(_request, response)
|
28
|
+
response.status = 200
|
29
|
+
response.content_type = "application/gzip"
|
30
|
+
response.body = source_archive
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
# compress the current sources into a tarball,
|
36
|
+
# no caching to ensure we always provide the latest content
|
37
|
+
def source_archive
|
38
|
+
# pack all Git files (including the non-tracked files (-o),
|
39
|
+
# use --ignore-failed-read to not fail for removed files)
|
40
|
+
# -z and --null: NUL-delimited
|
41
|
+
git = "git ls-files --cached --others --exclude-standard -z"
|
42
|
+
tar = "tar --create --ignore-failed-read --null --files-from -"
|
43
|
+
`#{git} | #{tar} | #{gzip}`
|
44
|
+
end
|
45
|
+
|
46
|
+
# find which gzip is installed, use the faster parallel gzip ("pigz") if it is available
|
47
|
+
# @return [String] "pigz or "gzip"
|
48
|
+
def gzip
|
49
|
+
return @gzip if @gzip
|
50
|
+
|
51
|
+
# parallel gzip installed?
|
52
|
+
@gzip = system("which pigz") ? "pigz" : "gzip"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yast-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.41
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: packaging_rake_tasks
|
@@ -49,17 +49,37 @@ extra_rdoc_files: []
|
|
49
49
|
files:
|
50
50
|
- COPYING
|
51
51
|
- VERSION
|
52
|
+
- data/index.html
|
52
53
|
- data/targets.yml
|
54
|
+
- lib/tasks/actions.rake
|
55
|
+
- lib/tasks/container_runner.rb
|
56
|
+
- lib/tasks/github_actions/github_actions.rb
|
57
|
+
- lib/tasks/github_actions/github_actions/colorizer.rb
|
58
|
+
- lib/tasks/github_actions/github_actions/container.rb
|
59
|
+
- lib/tasks/github_actions/github_actions/job.rb
|
60
|
+
- lib/tasks/github_actions/github_actions/job_runner.rb
|
61
|
+
- lib/tasks/github_actions/github_actions/step.rb
|
62
|
+
- lib/tasks/github_actions/github_actions/workflow.rb
|
63
|
+
- lib/tasks/github_actions/tasks.rb
|
64
|
+
- lib/tasks/github_actions/tasks/details.rb
|
65
|
+
- lib/tasks/github_actions/tasks/list.rb
|
66
|
+
- lib/tasks/github_actions/tasks/run.rb
|
67
|
+
- lib/tasks/github_actions/tasks/run_all.rb
|
53
68
|
- lib/tasks/install.rake
|
54
69
|
- lib/tasks/pot.rake
|
55
70
|
- lib/tasks/rubocop.rake
|
56
71
|
- lib/tasks/run.rake
|
72
|
+
- lib/tasks/server.rake
|
57
73
|
- lib/tasks/spell.yml
|
58
74
|
- lib/tasks/spellcheck.rake
|
59
75
|
- lib/tasks/spellcheck_task.rb
|
60
76
|
- lib/tasks/test_unit.rake
|
61
77
|
- lib/tasks/version.rake
|
78
|
+
- lib/yast/index_servlet.rb
|
62
79
|
- lib/yast/rake.rb
|
80
|
+
- lib/yast/servers_servlet.rb
|
81
|
+
- lib/yast/tarball_server.rb
|
82
|
+
- lib/yast/tarball_servlet.rb
|
63
83
|
- lib/yast/tasks.rb
|
64
84
|
homepage: https://github.com/yast/yast-rake
|
65
85
|
licenses:
|
@@ -80,7 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
100
|
- !ruby/object:Gem::Version
|
81
101
|
version: '0'
|
82
102
|
requirements: []
|
83
|
-
|
103
|
+
rubyforge_project:
|
104
|
+
rubygems_version: 2.7.6.3
|
84
105
|
signing_key:
|
85
106
|
specification_version: 4
|
86
107
|
summary: Rake tasks providing basic work-flow for Yast development
|