ztk 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,13 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - ree-1.8.7
5
- - 1.8.7
6
4
  - 1.9.2
7
5
  - 1.9.3
8
6
 
9
7
  branches:
10
8
  only:
11
9
  - master
10
+
11
+ notifications:
12
+ irc:
13
+ - "irc.freenode.org#jovelabs"
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://secure.travis-ci.org/jovelabs/ztk.png)](http://travis-ci.org/jovelabs/ztk)
1
+ [![Build Status](https://secure.travis-ci.org/jovelabs/ztk.png)](http://travis-ci.org/jovelabs/ztk) [![Dependency Status](https://gemnasium.com/jovelabs/ztk.png)](https://gemnasium.com/jovelabs/ztk)
2
2
 
3
3
  # ZTK
4
4
 
@@ -121,7 +121,7 @@ module ZTK
121
121
  # end
122
122
  # ssh.console
123
123
  def console
124
- log(:debug) { "console" }
124
+ log(:info) { "console(#{console_command.inspect})" }
125
125
  log(:debug) { "config(#{@config.inspect})" }
126
126
 
127
127
  Kernel.exec(console_command)
@@ -149,11 +149,10 @@ module ZTK
149
149
  # end
150
150
  # puts ssh.exec("hostname -f").inspect
151
151
  def exec(command, options={})
152
- log(:debug) { "exec(#{command.inspect}, #{options.inspect})" }
152
+ log(:info) { "exec(#{command.inspect}, #{options.inspect})" }
153
153
  log(:debug) { "config(#{@config.inspect})" }
154
154
 
155
155
  @ssh ||= Net::SSH.start(@config.host_name, @config.user, ssh_options)
156
- log(:debug) { "ssh(#{@ssh.inspect})" }
157
156
 
158
157
  options = OpenStruct.new({ :silence => false }.merge(options))
159
158
  log(:debug) { "options(#{options.inspect})" }
@@ -204,7 +203,6 @@ module ZTK
204
203
  log(:debug) { "config(#{@config.inspect})" }
205
204
 
206
205
  @sftp ||= Net::SFTP.start(@config.host_name, @config.user, ssh_options)
207
- log(:debug) { "sftp(#{@sftp.inspect})" }
208
206
 
209
207
  @sftp.upload!(local.to_s, remote.to_s) do |event, uploader, *args|
210
208
  case event
@@ -244,7 +242,6 @@ module ZTK
244
242
  log(:debug) { "config(#{@config.inspect})" }
245
243
 
246
244
  @sftp ||= Net::SFTP.start(@config.host_name, @config.user, ssh_options)
247
- log(:debug) { "sftp(#{@sftp.inspect})" }
248
245
 
249
246
  @sftp.download!(remote.to_s, local.to_s) do |event, downloader, *args|
250
247
  case event
@@ -19,5 +19,5 @@
19
19
  ################################################################################
20
20
 
21
21
  module ZTK
22
- VERSION = "0.0.10" unless const_defined?(:VERSION)
22
+ VERSION = "0.0.11" unless const_defined?(:VERSION)
23
23
  end
@@ -4,7 +4,7 @@ require File.expand_path('../lib/ztk/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Zachary Patten"]
6
6
  gem.email = ["zachary@jovelabs.net"]
7
- gem.description = %q{Zachary's Tool Kit}
7
+ gem.description = %q{Zachary's (DevOp) Tool Kit}
8
8
  gem.summary = %q{Contains various classes and utilities I find I regularly need.}
9
9
  gem.homepage = "https://github.com/jovelabs/ztk"
10
10
 
@@ -15,14 +15,14 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = ZTK::VERSION
17
17
 
18
- gem.add_dependency("erubis")
19
- gem.add_dependency("net-ssh")
20
- gem.add_dependency("net-sftp")
18
+ gem.add_dependency("erubis", ">= 0")
19
+ gem.add_dependency("net-ssh", ">= 0")
20
+ gem.add_dependency("net-sftp", ">= 0")
21
21
 
22
- gem.add_development_dependency("pry")
23
- gem.add_development_dependency("rake")
24
- gem.add_development_dependency("rspec")
25
- gem.add_development_dependency("simplecov")
26
- gem.add_development_dependency("yard")
27
- gem.add_development_dependency("redcarpet")
22
+ gem.add_development_dependency("pry", ">= 0")
23
+ gem.add_development_dependency("rake", ">= 0")
24
+ gem.add_development_dependency("rspec", ">= 0")
25
+ gem.add_development_dependency("simplecov", ">= 0")
26
+ gem.add_development_dependency("yard", ">= 0")
27
+ gem.add_development_dependency("redcarpet", ">= 0")
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ztk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2013-01-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erubis
@@ -155,7 +155,7 @@ dependencies:
155
155
  - - ! '>='
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
- description: Zachary's Tool Kit
158
+ description: Zachary's (DevOp) Tool Kit
159
159
  email:
160
160
  - zachary@jovelabs.net
161
161
  executables:
@@ -208,7 +208,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
208
208
  version: '0'
209
209
  segments:
210
210
  - 0
211
- hash: -2074197007212519057
211
+ hash: 3510449771731421328
212
212
  required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  none: false
214
214
  requirements:
@@ -217,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  version: '0'
218
218
  segments:
219
219
  - 0
220
- hash: -2074197007212519057
220
+ hash: 3510449771731421328
221
221
  requirements: []
222
222
  rubyforge_project:
223
223
  rubygems_version: 1.8.24