serverkit 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/serverkit/command.rb +14 -0
- data/lib/serverkit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b16828f0b794222ed550bb3b10f7fd979aa7188c
|
4
|
+
data.tar.gz: e1158d5a49d5ceabe44584cdde1888e471bcc1f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7657a6587fbaf0fb9fb6a178e4918b73beec12447bfea3fc5b801b8c3fd225b304759396afa524753a6a7e7e651ed6d0ac5048ff005e8fa888fb0abfc1b4716
|
7
|
+
data.tar.gz: b5e63eaff08bf79fa6327c7804c9c4f532f6b5539120a01a3c5c849777bf6e720738d40430e4d46b5ce4f988b66feeb82da26a0db3a8f8f9045a2683deb7104d
|
data/CHANGELOG.md
CHANGED
data/lib/serverkit/command.rb
CHANGED
@@ -74,6 +74,7 @@ module Serverkit
|
|
74
74
|
log_level: log_level,
|
75
75
|
recipe_path: recipe_path,
|
76
76
|
variables_path: variables_path,
|
77
|
+
ssh_options: ssh_options,
|
77
78
|
}.reject do |key, value|
|
78
79
|
value.nil?
|
79
80
|
end
|
@@ -97,6 +98,8 @@ module Serverkit
|
|
97
98
|
on "--log-level=", "Log level (DEBUG, INFO, WARN, ERROR, FATAL)"
|
98
99
|
on "--no-color", "Disable coloring"
|
99
100
|
on "--variables=", "Path to variables file for ERB recipe"
|
101
|
+
on "--ssh-user=", "SSH user name"
|
102
|
+
on "--ssh-identity=", "SSH identity (private key) file path"
|
100
103
|
end
|
101
104
|
end
|
102
105
|
|
@@ -126,5 +129,16 @@ module Serverkit
|
|
126
129
|
def variables_path
|
127
130
|
command_line_options["variables"]
|
128
131
|
end
|
132
|
+
|
133
|
+
def ssh_options
|
134
|
+
identity = command_line_options["ssh-identity"]
|
135
|
+
keys = identity ? [identity] : nil
|
136
|
+
{
|
137
|
+
user: command_line_options["ssh-user"],
|
138
|
+
keys: keys,
|
139
|
+
}.reject do |key, value|
|
140
|
+
value.nil?
|
141
|
+
end
|
142
|
+
end
|
129
143
|
end
|
130
144
|
end
|
data/lib/serverkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
314
|
rubyforge_project:
|
315
|
-
rubygems_version: 2.
|
315
|
+
rubygems_version: 2.5.2
|
316
316
|
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: Assemble servers from your recipe.
|