nanoc-deploying 1.0.1 → 1.0.3
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 +4 -4
- data/NEWS.md +10 -0
- data/README.md +2 -2
- data/lib/nanoc/deploying/deployers/git.rb +19 -9
- data/lib/nanoc/deploying/deployers/rsync.rb +2 -2
- data/lib/nanoc/deploying/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4deeacd91c2a3b228d2a17dfe1e36b206630170fd1af913f7d35d61b2246b9b
|
|
4
|
+
data.tar.gz: af94b99608eaa89491a455c1fb924d873f7e9a4617a8fe23dbb842c3a3338be8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00330b4826714c0c822894e2bd6d4e2cd796f9793432f86bd9a7c31310d071149149d6c61455cac30282cdee8f4f6057bb1c35187c00918bf734ab7402900569
|
|
7
|
+
data.tar.gz: 5ad8ff954c98a8317c5e251cb13face6a84a8063ad7e7fc432a326669b7c7df8d2668ed9c7e3d8842e4e9a4e08a7b23c2148da1860a4ba9ee186cbeace137eb4
|
data/NEWS.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# nanoc-deploying news
|
|
2
2
|
|
|
3
|
+
## 1.0.3 (2025-10-30)
|
|
4
|
+
|
|
5
|
+
Enhancements:
|
|
6
|
+
|
|
7
|
+
- Made rsync deployer print rsync output (#1764)
|
|
8
|
+
|
|
9
|
+
## 1.0.2 (2022-05-28)
|
|
10
|
+
|
|
11
|
+
- Made the Git deployer perform `git push` even if there is nothing to commit (#1575)
|
|
12
|
+
|
|
3
13
|
## 1.0.1 (2021-01-01)
|
|
4
14
|
|
|
5
15
|
Enhancements:
|
data/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# nanoc-deploying
|
|
2
2
|
|
|
3
|
-
This provides the `deploy` command and associated functionality for [Nanoc](https://nanoc.
|
|
3
|
+
This provides the `deploy` command and associated functionality for [Nanoc](https://nanoc.app).
|
|
4
4
|
|
|
5
|
-
For details, see the [Deploying Nanoc sites](https://nanoc.
|
|
5
|
+
For details, see the [Deploying Nanoc sites](https://nanoc.app/doc/deploying/) chapter of the Nanoc documentation.
|
|
@@ -78,13 +78,15 @@ module Nanoc
|
|
|
78
78
|
raise Errors::BranchDoesNotExist.new(branch)
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
# Commit (if needed)
|
|
82
|
+
unless clean_repo?
|
|
83
|
+
msg = "Automated commit at #{Time.now.utc} by Nanoc #{Nanoc::VERSION}"
|
|
84
|
+
author = 'Nanoc <>'
|
|
85
|
+
run_cmd_unless_dry(%w[git add -A])
|
|
86
|
+
run_cmd_unless_dry(%W[git commit -a --author #{author} -m #{msg}])
|
|
87
|
+
end
|
|
87
88
|
|
|
89
|
+
# Push
|
|
88
90
|
if forced
|
|
89
91
|
run_cmd_unless_dry(%W[git push -f #{remote} #{branch}])
|
|
90
92
|
else
|
|
@@ -100,15 +102,23 @@ module Nanoc
|
|
|
100
102
|
end
|
|
101
103
|
|
|
102
104
|
def run_cmd(cmd, dry_run: false)
|
|
103
|
-
TTY::Command.new(
|
|
105
|
+
TTY::Command.new(**tty_command_options).run(*cmd, dry_run:)
|
|
104
106
|
end
|
|
105
107
|
|
|
106
108
|
def run_cmd_unless_dry(cmd)
|
|
107
|
-
run_cmd(cmd, dry_run:
|
|
109
|
+
run_cmd(cmd, dry_run:)
|
|
108
110
|
end
|
|
109
111
|
|
|
110
112
|
def clean_repo?
|
|
111
|
-
TTY::Command.new(
|
|
113
|
+
TTY::Command.new(**tty_command_options).run('git status --porcelain').out.empty?
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def tty_command_options
|
|
117
|
+
if Nanoc::CLI.verbosity >= 1
|
|
118
|
+
{ uuid: false }
|
|
119
|
+
else
|
|
120
|
+
{ printer: :null }
|
|
121
|
+
end
|
|
112
122
|
end
|
|
113
123
|
end
|
|
114
124
|
end
|
|
@@ -55,7 +55,7 @@ module Nanoc
|
|
|
55
55
|
# Run
|
|
56
56
|
if dry_run
|
|
57
57
|
warn 'Performing a dry-run; no actions will actually be performed'
|
|
58
|
-
run_shell_cmd(['
|
|
58
|
+
run_shell_cmd(['rsync', '--dry-run', options, src, dst].flatten)
|
|
59
59
|
else
|
|
60
60
|
run_shell_cmd(['rsync', options, src, dst].flatten)
|
|
61
61
|
end
|
|
@@ -64,7 +64,7 @@ module Nanoc
|
|
|
64
64
|
private
|
|
65
65
|
|
|
66
66
|
def run_shell_cmd(cmd)
|
|
67
|
-
TTY::Command.new(
|
|
67
|
+
TTY::Command.new(uuid: false).run(*cmd)
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
70
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nanoc-deploying
|
|
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
|
- Denis Defreyne
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: nanoc-checking
|
|
@@ -83,11 +82,12 @@ files:
|
|
|
83
82
|
- lib/nanoc/deploying/deployers/git.rb
|
|
84
83
|
- lib/nanoc/deploying/deployers/rsync.rb
|
|
85
84
|
- lib/nanoc/deploying/version.rb
|
|
86
|
-
homepage: https://nanoc.
|
|
85
|
+
homepage: https://nanoc.app/
|
|
87
86
|
licenses:
|
|
88
87
|
- MIT
|
|
89
|
-
metadata:
|
|
90
|
-
|
|
88
|
+
metadata:
|
|
89
|
+
rubygems_mfa_required: 'true'
|
|
90
|
+
source_code_uri: https://github.com/nanoc/nanoc/tree/nanoc-deploying-v1.0.3/nanoc-deploying
|
|
91
91
|
rdoc_options: []
|
|
92
92
|
require_paths:
|
|
93
93
|
- lib
|
|
@@ -95,15 +95,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
95
95
|
requirements:
|
|
96
96
|
- - ">="
|
|
97
97
|
- !ruby/object:Gem::Version
|
|
98
|
-
version: '2
|
|
98
|
+
version: '3.2'
|
|
99
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - ">="
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
103
|
version: '0'
|
|
104
104
|
requirements: []
|
|
105
|
-
rubygems_version: 3.2
|
|
106
|
-
signing_key:
|
|
105
|
+
rubygems_version: 3.7.2
|
|
107
106
|
specification_version: 4
|
|
108
107
|
summary: Deploying support for Nanoc
|
|
109
108
|
test_files: []
|