hss 0.2.11 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -6
- data/CHANGELOG.md +4 -0
- data/README.md +9 -0
- data/hss.gemspec +3 -3
- data/lib/hss/version.rb +1 -1
- data/spec/bin_spec.rb +1 -1
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef7192f6117b1cfc9c36a32dde07640ffb20e8e2
|
4
|
+
data.tar.gz: e21c314b7da401c565c470e1c7a19cd424d31059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87294251d8b02cb42d1dca8f67bb8a3f8e5369cc973f168622c35037e648799465370e55fa201cc9a798e1ffcd08511aeeafffdec0c0981e11ff3d13c1a5d2a9
|
7
|
+
data.tar.gz: f1abe05324cb72d399fc46a7a0b7076e5b035dadc51b42243eaff88e5b2347bcc6b38792e31e2a1c34d39af92f1c12ae582cbc0ee58175c1cdb1b8d0d5ec3cd0
|
data/.travis.yml
CHANGED
@@ -3,16 +3,16 @@ before_script:
|
|
3
3
|
- cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
4
4
|
language: ruby
|
5
5
|
cache: bundler
|
6
|
+
sudo: false
|
6
7
|
rvm:
|
7
|
-
- 2.
|
8
|
-
- 2.1.
|
9
|
-
- 2.
|
10
|
-
-
|
11
|
-
- 1.9.3
|
8
|
+
- 2.2.0
|
9
|
+
- 2.1.5
|
10
|
+
- 2.0.0-p598
|
11
|
+
- 1.9.3-p551
|
12
12
|
notifications:
|
13
13
|
email: false
|
14
14
|
irc:
|
15
15
|
channels:
|
16
|
-
-
|
16
|
+
- irc.oftc.net#akerl
|
17
17
|
template:
|
18
18
|
- "%{repository}/%{branch}/%{build_number}: %{message} -- %{build_url}"
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -25,12 +25,21 @@ This script can be used by SCP and other things that use SSH as a transport. To
|
|
25
25
|
scp -S hss host:files/ other_host:location/
|
26
26
|
```
|
27
27
|
|
28
|
+
To use it with rsync, use the -e flag:
|
29
|
+
|
30
|
+
```
|
31
|
+
rsync -e hss files/ host:location/
|
32
|
+
```
|
33
|
+
|
28
34
|
You can alias this for the greater good:
|
29
35
|
|
30
36
|
```
|
31
37
|
alias pcs='scp -S hss'
|
38
|
+
alias cnysr='rsync -e hss'
|
32
39
|
```
|
33
40
|
|
41
|
+
**Caveat:** Because of how hss processes hosts, it will only operate on the first host-like thing in your command. As such, using scp to copy a local file to an hss'd host will work, as will the inverse, and copying a file from an hss'd host to a normal host works, but not the inverse.
|
42
|
+
|
34
43
|
## Configuration
|
35
44
|
|
36
45
|
1. You can put your configuration in ~/.hss.yml or another file specified by the "HSS\_CONFIG" environment variable.
|
data/hss.gemspec
CHANGED
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.test_files = `git ls-files spec/*`.split
|
17
17
|
s.executables = ['hss']
|
18
18
|
|
19
|
-
s.add_development_dependency 'rubocop', '~> 0.
|
20
|
-
s.add_development_dependency 'rake', '~> 10.
|
19
|
+
s.add_development_dependency 'rubocop', '~> 0.28.0'
|
20
|
+
s.add_development_dependency 'rake', '~> 10.4.0'
|
21
21
|
s.add_development_dependency 'coveralls', '~> 0.7.1'
|
22
|
-
s.add_development_dependency 'rspec', '~> 3.
|
22
|
+
s.add_development_dependency 'rspec', '~> 3.1.0'
|
23
23
|
s.add_development_dependency 'fuubar', '~> 2.0.0'
|
24
24
|
end
|
data/lib/hss/version.rb
CHANGED
data/spec/bin_spec.rb
CHANGED
@@ -6,7 +6,7 @@ describe 'HSS script' do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
it 'prints the version' do
|
9
|
-
expect(`hss version`.strip).to
|
9
|
+
expect(`hss version`.strip).to match(/\d+\.\d+\.\d+/)
|
10
10
|
end
|
11
11
|
it 'prints a list of examples' do
|
12
12
|
expect(`hss`.split("\n").first).to eql 'How to use:'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.28.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.28.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 10.
|
33
|
+
version: 10.4.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 10.
|
40
|
+
version: 10.4.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: coveralls
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 3.
|
61
|
+
version: 3.1.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 3.
|
68
|
+
version: 3.1.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fuubar
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -91,6 +91,7 @@ files:
|
|
91
91
|
- ".rspec"
|
92
92
|
- ".rubocop.yml"
|
93
93
|
- ".travis.yml"
|
94
|
+
- CHANGELOG.md
|
94
95
|
- Gemfile
|
95
96
|
- LICENSE
|
96
97
|
- README.md
|
@@ -140,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
141
|
version: '0'
|
141
142
|
requirements: []
|
142
143
|
rubyforge_project:
|
143
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.4.5
|
144
145
|
signing_key:
|
145
146
|
specification_version: 4
|
146
147
|
summary: SSH helper
|