ssssh 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ssssh +5 -2
- data/lib/ssssh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d86f0f69324dccca1a583a02dce9a236a0857495
|
4
|
+
data.tar.gz: a6b7586228ab38c9982cc4d3774ba5d63467f1f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2286d07099cfb4bb4381f357a4e133e0ff44f9b26df2aebd35e54619a958d1e6ead2e281413a90323886b204226b90e8ed2aaa92eebfc15abce41255bc249c0
|
7
|
+
data.tar.gz: 509a0b681b545bfdcb97490c2d2b4dac10da1bc7d19d82aaa5ff4da8143f934872921dd9e8701f75f475b1f7bc4e17a157d4be8b87f322c67ac3adede5a8442c
|
data/bin/ssssh
CHANGED
@@ -31,11 +31,15 @@ Clamp do
|
|
31
31
|
|
32
32
|
subcommand "encrypt", "Encrypt STDIN" do
|
33
33
|
|
34
|
+
option "--[no-]wrap", :flag, "wrap encrypted data", :default => true
|
35
|
+
|
34
36
|
parameter "KEY_ID", "KMS key-id"
|
35
37
|
parameter "[PLAINTEXT]", "plaintext", :default => "STDIN"
|
36
38
|
|
37
39
|
def execute
|
38
|
-
|
40
|
+
result = Base64.encode64(encrypt(plaintext, key_id))
|
41
|
+
result.gsub!("\n", "") unless wrap?
|
42
|
+
puts result
|
39
43
|
end
|
40
44
|
|
41
45
|
private
|
@@ -75,7 +79,6 @@ Clamp do
|
|
75
79
|
end
|
76
80
|
|
77
81
|
def aws_config
|
78
|
-
# signal_error "No --region specified" unless region
|
79
82
|
{
|
80
83
|
:access_key_id => access_key_id,
|
81
84
|
:secret_access_key => secret_access_key,
|
data/lib/ssssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|