netid-tools 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,7 +3,7 @@ NetID Tools
3
3
 
4
4
  NetID Tools is a Ruby Gem that contains various methods for supporting Uniform Access computing at the University of Washington. These are mainly methods that I've found useful to create during the course of my job, but may be useful to others as well.
5
5
 
6
- Currently the focus is on finding and displaying information on any MySQL database server(s) that users may be running, as well as highlight potential quota issues.
6
+ Currently the focus is on finding and displaying information on any MySQL database server(s) that users may be running, as well as highlight potential quota issues.
7
7
 
8
8
  ## Installing
9
9
 
@@ -131,6 +131,11 @@ The NetID you want to check
131
131
  Version History
132
132
  ===============
133
133
 
134
+ ## 0.3.9
135
+
136
+ * Add webtype check to list of returned results in ua_check executable
137
+ * Add Netid.check_webtype method
138
+
134
139
  ## 0.3.8
135
140
 
136
141
  * Remove ovid21.u.washington.edu from host list; retired system
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.9
data/bin/ua_check CHANGED
@@ -70,10 +70,12 @@ user.each do |netid|
70
70
  puts "No localhome detected"
71
71
  end
72
72
 
73
+ puts "Webtypes set: #{Netid.check_webtype(netid, system_user)}"
74
+
73
75
  puts "No MySQLds Detected".bold.blue if results == 0
74
76
  #uts "Multiple MySQLds Detected!".bold.red if results > 1
75
77
  #puts Netid.check_for_localhome(user,system_user).cyan if results > 0
76
- unless options[:concise]
78
+ unless options[:concise]
77
79
  puts "\n"
78
80
  Netid.quota_check(netid,system_user)
79
81
  end
data/lib/netid-tools.rb CHANGED
@@ -39,6 +39,14 @@ class Netid
39
39
  end
40
40
  end
41
41
 
42
+ def self.check_webtype(user,system_user)
43
+ host = 'ovid02.u.washington.edu'
44
+ Net::SSH.start(host,system_user, {auth_methods: %w( publickey )}) do |ssh|
45
+ ssh.exec!("webtype -user #{user}").chomp
46
+ end
47
+ end
48
+
49
+
42
50
  def self.quota_check(user,system_user)
43
51
  host = 'ovid02.u.washington.edu'
44
52
  Net::SSH.start(host,system_user, {auth_methods: %w( publickey )}) do |ssh|
data/netid-tools.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "netid-tools"
8
- s.version = "0.3.8"
8
+ s.version = "0.3.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nikky Southerland"]
12
- s.date = "2013-02-05"
12
+ s.date = "2013-06-06"
13
13
  s.description = "Gem with various methods to support UW NetIDs"
14
14
  s.email = "nikky@uw.edu"
15
15
  s.executables = ["ua_check"]
@@ -33,7 +33,7 @@ Gem::Specification.new do |s|
33
33
  s.homepage = "http://github.com/allynfolksjr/netid-tools"
34
34
  s.licenses = ["Apache License, Version 2.0"]
35
35
  s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.23"
36
+ s.rubygems_version = "1.8.25"
37
37
  s.summary = "Gem with various methods to support UW NetIDs"
38
38
 
39
39
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netid-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
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: 2013-02-05 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -206,7 +206,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
206
206
  version: '0'
207
207
  segments:
208
208
  - 0
209
- hash: 2062566160514951594
209
+ hash: -3112164113540017213
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  none: false
212
212
  requirements:
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
215
215
  version: '0'
216
216
  requirements: []
217
217
  rubyforge_project:
218
- rubygems_version: 1.8.23
218
+ rubygems_version: 1.8.25
219
219
  signing_key:
220
220
  specification_version: 3
221
221
  summary: Gem with various methods to support UW NetIDs