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 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']]
@@ -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
@@ -16,7 +16,7 @@ require 'screwcap/sequence'
16
16
  require 'screwcap/task_manager'
17
17
 
18
18
  module Screwcap
19
- VERSION='0.8'
19
+ VERSION='0.8.1'
20
20
 
21
21
  class TaskNotFound < RuntimeError; end
22
22
  class NoServersDefined < Exception; end
data/screwcap.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'bundler/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "screwcap"
9
- s.version = "0.8"
9
+ s.version = "0.8.1"
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.author = "Grant Ammons"
12
12
  s.email = ["grant@pipelinedealsco.com"]
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: 27
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- version: "0.8"
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-16 00:00:00 -07:00
18
+ date: 2011-04-18 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency