samus 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +0 -0
  3. data/Dockerfile +0 -0
  4. data/LICENSE +0 -0
  5. data/README.md +0 -0
  6. data/Rakefile +0 -0
  7. data/bin/samus +15 -0
  8. data/commands/build/archive-git-full.help.md +0 -0
  9. data/commands/build/archive-tgz.help.md +0 -0
  10. data/commands/build/archive-zip.help.md +0 -0
  11. data/commands/build/changelog-parse.help.md +0 -0
  12. data/commands/build/fs-copy.help.md +0 -0
  13. data/commands/build/fs-mkdir.help.md +0 -0
  14. data/commands/build/fs-rmrf.help.md +0 -0
  15. data/commands/build/fs-sedfiles.help.md +0 -0
  16. data/commands/build/gem-build.help.md +0 -0
  17. data/commands/build/git-archive.help.md +0 -0
  18. data/commands/build/git-clone.help.md +0 -0
  19. data/commands/build/git-commit.help.md +0 -0
  20. data/commands/build/git-merge.help.md +0 -0
  21. data/commands/build/make-task.help.md +0 -0
  22. data/commands/build/npm-pack.help.md +0 -0
  23. data/commands/build/npm-task.help.md +0 -0
  24. data/commands/build/npm-test.help.md +0 -0
  25. data/commands/build/rake-task.help.md +0 -0
  26. data/commands/build/samus-build.help.md +0 -0
  27. data/commands/publish/cf-invalidate.help.md +0 -0
  28. data/commands/publish/gem-push.help.md +0 -0
  29. data/commands/publish/git-push +6 -1
  30. data/commands/publish/git-push.help.md +0 -0
  31. data/commands/publish/github-release.help.md +0 -0
  32. data/commands/publish/npm-publish.help.md +0 -0
  33. data/commands/publish/s3-put.help.md +0 -0
  34. data/commands/publish/samus-publish.help.md +0 -0
  35. data/lib/samus.rb +0 -0
  36. data/lib/samus/action.rb +0 -0
  37. data/lib/samus/build_action.rb +0 -0
  38. data/lib/samus/builder.rb +0 -0
  39. data/lib/samus/command.rb +0 -0
  40. data/lib/samus/credentials.rb +0 -0
  41. data/lib/samus/publish_action.rb +0 -0
  42. data/lib/samus/publisher.rb +0 -0
  43. data/lib/samus/version.rb +1 -1
  44. data/samus.gemspec +0 -0
  45. data/samus.json +1 -0
  46. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ec8b4850b480f49ce49ab6c437a0feb1e50de811
4
- data.tar.gz: 07f12c2e09ade8dde71f5b92e4bd34e37cc78bfd
2
+ SHA256:
3
+ metadata.gz: 8b3d62247cb2a44f9257d1e03a1c4505832ce32e99498d9f7f098a78203b37f5
4
+ data.tar.gz: cfaac3e72affd852b6ff15f4a25fa29297f56174f5968e504db183cf70aad516
5
5
  SHA512:
6
- metadata.gz: 21705267ac960018b61b4de530f334c3231d533f324dd0caec788bb96df259754a1a02b3dc7c5514183bf5e5719fc73d3388879e13f21ae3854a0e2f369cde64
7
- data.tar.gz: 67de29e4727253e87a1c90b4d7b890ec716c76e888751784c2deab377fb5c5e21305afecc6ab60888d7d156ffe1fa2afd10a3df297233d2868102e46e1303f9e
6
+ metadata.gz: b0257fcf2fcd3b8af75250800b147cd806068a8789ebb33441362234be1d42abcf9b162eec2dbb494cd3f4ac4accf24da07f76d850d453499edbf4f30c46f0da
7
+ data.tar.gz: 5cd4b6cfcd4d71d24b5c1233b74f6d3d485f1b91e9f3bef980d2d692c439d5e16dd4be076eb38730673936015d8731c33aa5435c66ec78c2aba24cd6aa2eca4d
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
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Samus
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '1.6.0'.freeze
3
3
  end
File without changes
data/samus.json CHANGED
@@ -24,6 +24,7 @@
24
24
  "publish": [
25
25
  {
26
26
  "action": "git-push",
27
+ "credentials": "lsegal.github.ssh",
27
28
  "arguments": {
28
29
  "remotes": "origin",
29
30
  "refs": "master v$version"
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.5.0
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-18 00:00:00.000000000 Z
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.14.1
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.