opskeleton 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Gemfile.lock +14 -14
- data/docs/deploy.md +21 -0
- data/lib/opskeleton/deploy_scp.rb +4 -1
- data/lib/opskeleton/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: b48a3126100217a68d9b58345c07aa2f87806d8b
|
|
4
|
+
data.tar.gz: 540ab69aef10b3365533329e5ac9d3f5f9602bba
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7b47b9669f4b7fda4b950e10f9cf38ee04270c786221326887556fe3c4427b1a1c64302b0080db180ce6e956030f0d9b0334b95dfdda0e122140768cf772202
|
|
7
|
+
data.tar.gz: fb25cdc7cf1d94f12e163ef2d6e4cfd0bee0295600cbcb2546208f9c68b1b4e685f364fa2de7cd3ae103a3fecdc795a52e5128d56f89184e890b47a802027107
|
data/CHANGES.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
opskeleton (0.8.
|
|
4
|
+
opskeleton (0.8.9)
|
|
5
5
|
aws-sdk (~> 2)
|
|
6
6
|
bintray_deploy
|
|
7
7
|
net-scp
|
|
@@ -11,14 +11,14 @@ GEM
|
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
13
|
CFPropertyList (2.2.8)
|
|
14
|
-
aws-sdk (2.0.
|
|
15
|
-
aws-sdk-resources (= 2.0.
|
|
16
|
-
aws-sdk-core (2.0.
|
|
14
|
+
aws-sdk (2.0.39)
|
|
15
|
+
aws-sdk-resources (= 2.0.39)
|
|
16
|
+
aws-sdk-core (2.0.39)
|
|
17
17
|
builder (~> 3.0)
|
|
18
18
|
jmespath (~> 1.0)
|
|
19
19
|
multi_json (~> 1.0)
|
|
20
|
-
aws-sdk-resources (2.0.
|
|
21
|
-
aws-sdk-core (= 2.0.
|
|
20
|
+
aws-sdk-resources (2.0.39)
|
|
21
|
+
aws-sdk-core (= 2.0.39)
|
|
22
22
|
bintray_deploy (0.0.4)
|
|
23
23
|
configuration
|
|
24
24
|
rest-client
|
|
@@ -55,7 +55,7 @@ GEM
|
|
|
55
55
|
coderay (1.1.0)
|
|
56
56
|
configuration (1.3.4)
|
|
57
57
|
diff-lcs (1.2.5)
|
|
58
|
-
domain_name (0.5.
|
|
58
|
+
domain_name (0.5.24)
|
|
59
59
|
unf (>= 0.0.5, < 1.0.0)
|
|
60
60
|
erubis (2.7.0)
|
|
61
61
|
facter (2.4.3)
|
|
@@ -65,7 +65,7 @@ GEM
|
|
|
65
65
|
ffi (~> 1.5)
|
|
66
66
|
libyajl2 (~> 1.2)
|
|
67
67
|
hashie (2.1.2)
|
|
68
|
-
hiera (
|
|
68
|
+
hiera (2.0.0)
|
|
69
69
|
json_pure
|
|
70
70
|
highline (1.7.1)
|
|
71
71
|
http-cookie (1.0.2)
|
|
@@ -113,14 +113,14 @@ GEM
|
|
|
113
113
|
coderay (~> 1.1.0)
|
|
114
114
|
method_source (~> 0.8.1)
|
|
115
115
|
slop (~> 3.4)
|
|
116
|
-
puppet (
|
|
117
|
-
facter (>
|
|
118
|
-
hiera (
|
|
116
|
+
puppet (4.0.0)
|
|
117
|
+
facter (> 2.0, < 4)
|
|
118
|
+
hiera (>= 2.0, < 3)
|
|
119
119
|
json_pure
|
|
120
120
|
puppet-lint (1.1.0)
|
|
121
121
|
puppet-syntax (2.0.0)
|
|
122
122
|
rake
|
|
123
|
-
puppetlabs_spec_helper (0.10.
|
|
123
|
+
puppetlabs_spec_helper (0.10.2)
|
|
124
124
|
mocha
|
|
125
125
|
puppet-lint
|
|
126
126
|
puppet-syntax
|
|
@@ -160,14 +160,14 @@ GEM
|
|
|
160
160
|
rspec-its
|
|
161
161
|
specinfra (~> 2.25)
|
|
162
162
|
slop (3.6.0)
|
|
163
|
-
specinfra (2.28.
|
|
163
|
+
specinfra (2.28.4)
|
|
164
164
|
net-scp
|
|
165
165
|
net-ssh
|
|
166
166
|
systemu (2.6.5)
|
|
167
167
|
thor (0.19.1)
|
|
168
168
|
unf (0.1.4)
|
|
169
169
|
unf_ext
|
|
170
|
-
unf_ext (0.0.
|
|
170
|
+
unf_ext (0.0.7.1)
|
|
171
171
|
uuidtools (2.1.5)
|
|
172
172
|
wmi-lite (1.0.0)
|
|
173
173
|
|
data/docs/deploy.md
CHANGED
|
@@ -29,6 +29,27 @@ The packaged tar files can be consumed using any tool and protocol (http, s3 etc
|
|
|
29
29
|
}
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
* Scp:
|
|
33
|
+
```bash
|
|
34
|
+
$ opsk package
|
|
35
|
+
$ opsk deploy_scp bar
|
|
36
|
+
deployed foo-sandbox-0.0.1.tar.gz to foo@opsk-boxes:/var/boxes
|
|
37
|
+
```
|
|
38
|
+
Make sure to configure scp section under ~/.configuration.rb:
|
|
39
|
+
|
|
40
|
+
```ruby
|
|
41
|
+
Configuration.for('scp') {
|
|
42
|
+
bar {
|
|
43
|
+
host 'opsk-boxes'
|
|
44
|
+
user 'foo'
|
|
45
|
+
dest '/var/boxes'
|
|
46
|
+
# optional
|
|
47
|
+
port 2222
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
32
53
|
|
|
33
54
|
|
|
34
55
|
|
|
@@ -25,7 +25,10 @@ module Opsk
|
|
|
25
25
|
if(File.exists?(tar))
|
|
26
26
|
begin
|
|
27
27
|
conf = Configuration.for('scp').send(dest.to_sym)
|
|
28
|
-
|
|
28
|
+
port = conf.port || '22'
|
|
29
|
+
Net::SSH.start(conf.host, conf.user, :port => port) do |session|
|
|
30
|
+
session.scp.upload!(tar, conf.dest)
|
|
31
|
+
end
|
|
29
32
|
say("deployed #{base} to #{conf.user}@#{conf.host}:#{conf.dest}")
|
|
30
33
|
rescue Exception => e
|
|
31
34
|
say("failed to deploy due to #{e}")
|
data/lib/opskeleton/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opskeleton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- narkisr
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|