screwcap 0.8 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/screwcap/server.rb +2 -2
- data/lib/screwcap.rb +1 -1
- data/screwcap.gemspec +1 -1
- metadata +4 -3
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Hoe.plugin :newgem
|
|
11
11
|
# Generate all the Rake tasks
|
12
12
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
13
|
$hoe = Hoe.spec 'screwcap' do
|
14
|
-
self.version = '0.8'
|
14
|
+
self.version = '0.8.1'
|
15
15
|
self.developer 'Grant Ammons', 'grant@pipelinedeals.com'
|
16
16
|
self.rubyforge_name = self.name # TODO this is default value
|
17
17
|
self.extra_deps = [['net-ssh','>= 2.0.23'],['net-ssh-gateway','>=1.0.1'], ['net-scp','>=1.0.4']]
|
data/lib/screwcap/server.rb
CHANGED
@@ -13,6 +13,7 @@ class Server < Screwcap::Base
|
|
13
13
|
# * *:password* specify the password to connect with. Not recommended. Use keys.
|
14
14
|
def initialize(opts = {})
|
15
15
|
super
|
16
|
+
self.__options = opts
|
16
17
|
self.__name = opts.delete(:name)
|
17
18
|
self.__user = opts.delete(:user)
|
18
19
|
self.__options[:keys] = [opts.delete(:key)] if opts[:key]
|
@@ -21,7 +22,6 @@ class Server < Screwcap::Base
|
|
21
22
|
self.__gateway = servers.select {|s| s.__options[:is_gateway] == true }.find {|s| s.__name == opts[:gateway] } if servers
|
22
23
|
self.__connections = []
|
23
24
|
|
24
|
-
self.__options = opts
|
25
25
|
|
26
26
|
if self.__options[:address] and self.__options[:addresses].nil?
|
27
27
|
self.__addresses = [self.__options.delete(:address)]
|
@@ -55,7 +55,7 @@ class Server < Screwcap::Base
|
|
55
55
|
|
56
56
|
def upload! (local, remote)
|
57
57
|
self.__connections.each do |conn|
|
58
|
-
conn.scp.upload! local, remote
|
58
|
+
conn[:connection].scp.upload! local, remote
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
data/lib/screwcap.rb
CHANGED
data/screwcap.gemspec
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screwcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 61
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 0.8.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Grant Ammons
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-18 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|