samus 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +0 -0
- data/Dockerfile +0 -0
- data/LICENSE +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/bin/samus +15 -0
- data/commands/build/archive-git-full.help.md +0 -0
- data/commands/build/archive-tgz.help.md +0 -0
- data/commands/build/archive-zip.help.md +0 -0
- data/commands/build/changelog-parse.help.md +0 -0
- data/commands/build/fs-copy.help.md +0 -0
- data/commands/build/fs-mkdir.help.md +0 -0
- data/commands/build/fs-rmrf.help.md +0 -0
- data/commands/build/fs-sedfiles.help.md +0 -0
- data/commands/build/gem-build.help.md +0 -0
- data/commands/build/git-archive.help.md +0 -0
- data/commands/build/git-clone.help.md +0 -0
- data/commands/build/git-commit.help.md +0 -0
- data/commands/build/git-merge.help.md +0 -0
- data/commands/build/make-task.help.md +0 -0
- data/commands/build/npm-pack.help.md +0 -0
- data/commands/build/npm-task.help.md +0 -0
- data/commands/build/npm-test.help.md +0 -0
- data/commands/build/rake-task.help.md +0 -0
- data/commands/build/samus-build.help.md +0 -0
- data/commands/publish/cf-invalidate.help.md +0 -0
- data/commands/publish/gem-push.help.md +0 -0
- data/commands/publish/git-push +6 -1
- data/commands/publish/git-push.help.md +0 -0
- data/commands/publish/github-release.help.md +0 -0
- data/commands/publish/npm-publish.help.md +0 -0
- data/commands/publish/s3-put.help.md +0 -0
- data/commands/publish/samus-publish.help.md +0 -0
- data/lib/samus.rb +0 -0
- data/lib/samus/action.rb +0 -0
- data/lib/samus/build_action.rb +0 -0
- data/lib/samus/builder.rb +0 -0
- data/lib/samus/command.rb +0 -0
- data/lib/samus/credentials.rb +0 -0
- data/lib/samus/publish_action.rb +0 -0
- data/lib/samus/publisher.rb +0 -0
- data/lib/samus/version.rb +1 -1
- data/samus.gemspec +0 -0
- data/samus.json +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 8b3d62247cb2a44f9257d1e03a1c4505832ce32e99498d9f7f098a78203b37f5
|
4
|
+
data.tar.gz: cfaac3e72affd852b6ff15f4a25fa29297f56174f5968e504db183cf70aad516
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0257fcf2fcd3b8af75250800b147cd806068a8789ebb33441362234be1d42abcf9b162eec2dbb494cd3f4ac4accf24da07f76d850d453499edbf4f30c46f0da
|
7
|
+
data.tar.gz: 5cd4b6cfcd4d71d24b5c1233b74f6d3d485f1b91e9f3bef980d2d692c439d5e16dd4be076eb38730673936015d8731c33aa5435c66ec78c2aba24cd6aa2eca4d
|
data/CHANGELOG.md
CHANGED
File without changes
|
data/Dockerfile
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/samus
CHANGED
@@ -44,6 +44,7 @@ command =
|
|
44
44
|
dry_run = false
|
45
45
|
zip_release = true
|
46
46
|
outfile = nil
|
47
|
+
docker = false
|
47
48
|
options = OptionParser.new do |opts|
|
48
49
|
opts.banner = "Usage: samus publish [options] <directory> [directory ...]\n"
|
49
50
|
opts.banner += " samus build [options] <version> [build.json]\n"
|
@@ -61,6 +62,10 @@ options = OptionParser.new do |opts|
|
|
61
62
|
opts.on('-o FILE', '--output', 'The file (no extension) to generate') do |file|
|
62
63
|
outfile = file
|
63
64
|
end
|
65
|
+
else
|
66
|
+
opts.on('--docker', 'Use docker to publish') do |_v|
|
67
|
+
docker = true
|
68
|
+
end
|
64
69
|
end
|
65
70
|
end
|
66
71
|
options.parse!
|
@@ -71,6 +76,16 @@ if command == Samus::Publisher
|
|
71
76
|
end
|
72
77
|
|
73
78
|
ARGV.each do |dir|
|
79
|
+
if docker
|
80
|
+
cmd = <<-COMMAND
|
81
|
+
docker run --rm -v "#{Dir.home}/.samus:/root/.samus"
|
82
|
+
-v "#{Dir.pwd}:/app" -w /app -t lsegal/samus
|
83
|
+
samus publish "#{dir}"
|
84
|
+
COMMAND
|
85
|
+
system(cmd.delete("\n").chomp)
|
86
|
+
next
|
87
|
+
end
|
88
|
+
|
74
89
|
if File.directory?(dir)
|
75
90
|
command.new(dir).publish(dry_run)
|
76
91
|
elsif File.file?(dir) # it has to be an archive
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/commands/publish/git-push
CHANGED
@@ -13,7 +13,12 @@ case "$dir" in
|
|
13
13
|
esac
|
14
14
|
|
15
15
|
cd $dir
|
16
|
+
echo "-----BEGIN RSA PRIVATE KEY-----" > .sshkey
|
17
|
+
echo "$__creds_secret" >> .sshkey
|
18
|
+
echo "-----END RSA PRIVATE KEY-----" >> .sshkey
|
19
|
+
chmod 600 .sshkey
|
20
|
+
|
16
21
|
for r in $_remotes; do
|
17
|
-
git push $r $_refs
|
22
|
+
ssh-agent bash -c "ssh-add .sshkey; git push $r $_refs"
|
18
23
|
done
|
19
24
|
cd $olddir
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/samus.rb
CHANGED
File without changes
|
data/lib/samus/action.rb
CHANGED
File without changes
|
data/lib/samus/build_action.rb
CHANGED
File without changes
|
data/lib/samus/builder.rb
CHANGED
File without changes
|
data/lib/samus/command.rb
CHANGED
File without changes
|
data/lib/samus/credentials.rb
CHANGED
File without changes
|
data/lib/samus/publish_action.rb
CHANGED
File without changes
|
data/lib/samus/publisher.rb
CHANGED
File without changes
|
data/lib/samus/version.rb
CHANGED
data/samus.gemspec
CHANGED
File without changes
|
data/samus.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: samus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Loren Segal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: lsegal@soen.ca
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.6
|
110
|
+
rubygems_version: 2.7.6
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Samus helps you release Open Source Software.
|