hieb 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +24 -0
- data/bin/hieb +4 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53b3978d385a9ddc5ed07b477165f5ecd3df867d
|
4
|
+
data.tar.gz: 966aaebadf9e79263d4a0da6ce21fdade47ac3ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9029371917223bf0fdd17602b55c926928aeed5cee08a4a70a231385289b9bf6f57ccd72bb29e6feac39a1d96cf54ebe2a9b5be18974217fa931c8e8803ca17
|
7
|
+
data.tar.gz: e12516237244619ace7cf515483487f45f5363a1aa9b6f6f650e20ab3b1021cba75046a02ff4d41490215fadcedff6bd933ca970561efd7a850970e84042b708
|
data/README.md
CHANGED
@@ -32,3 +32,27 @@ Hieb is searching in the working directory for `_exe.json`. The content might lo
|
|
32
32
|
### File Upload
|
33
33
|
|
34
34
|
Hieb is searching in the working directory for `_files`. The content of this directory will be uploaded starting from the root directory.
|
35
|
+
|
36
|
+
```
|
37
|
+
_files/
|
38
|
+
|-- bin
|
39
|
+
| `-- new.exe
|
40
|
+
|-- etc
|
41
|
+
| `-- complex.cfg
|
42
|
+
`-- tmp
|
43
|
+
|-- temporary.cfg
|
44
|
+
|-- temporary.db
|
45
|
+
`-- temporary.sh
|
46
|
+
```
|
47
|
+
|
48
|
+
## Remarks
|
49
|
+
|
50
|
+
Hieb is an extreme simple tool to execute commands and upload files using only SSH. It is by no mean a replacement for tools like Puppets, Chef, etc. The intention is to have a tool for one time deployments without complex dependencies. I always had the feeling most tools a to complex for extreme simple machine deployments.
|
51
|
+
|
52
|
+
To simplify the command execution you can add the following to your ```/etc/sudoers```:
|
53
|
+
|
54
|
+
```
|
55
|
+
user ALL=(ALL) NOPASSWD: ALL
|
56
|
+
```
|
57
|
+
|
58
|
+
This allows the usage of ```sudo``` without passing a password.
|
data/bin/hieb
CHANGED
@@ -44,7 +44,10 @@ def upload_dir(scp, dir)
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
10.times do |i|
|
48
|
+
break if ping HOST
|
49
|
+
raise 'Host not reachable' if i == 9
|
50
|
+
end
|
48
51
|
|
49
52
|
# Upload deploy files
|
50
53
|
Net::SCP.start(HOST, USER, :password => KEY, :keys => [ KEY ]) do |scp|
|
metadata
CHANGED
@@ -1,53 +1,53 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hieb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Bovensiepen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.0'
|
20
|
-
- -
|
20
|
+
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 4.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - ~>
|
27
|
+
- - "~>"
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '4.0'
|
30
|
-
- -
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 4.0.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: net-scp
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ~>
|
37
|
+
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
39
|
version: '1.2'
|
40
|
-
- -
|
40
|
+
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 1.2.1
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '1.2'
|
50
|
-
- -
|
50
|
+
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 1.2.1
|
53
53
|
description: Simple deployment tool using SSH and supporting command execution and
|
@@ -71,12 +71,12 @@ require_paths:
|
|
71
71
|
- lib
|
72
72
|
required_ruby_version: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- -
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|