[ARVADOS] updated: ae0720ea3b92ff165f95b0eafc6d85f736f5ae5f

git at public.curoverse.com git at public.curoverse.com
Wed Feb 12 09:22:36 EST 2014


Summary of changes:
 apps/admin/list-inactive-users.rb |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
 delete mode 100755 apps/admin/list-inactive-users.rb

       via  ae0720ea3b92ff165f95b0eafc6d85f736f5ae5f (commit)
      from  9065715dd01b90f961a2b5118686075dfc13e458 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit ae0720ea3b92ff165f95b0eafc6d85f736f5ae5f
Author: Ward Vandewege <ward at curoverse.com>
Date:   Wed Feb 12 09:22:19 2014 -0500

    The list-inactive-users.rb script has been moved to the puppet tree for
    now.

diff --git a/apps/admin/list-inactive-users.rb b/apps/admin/list-inactive-users.rb
deleted file mode 100755
index 25311b7..0000000
--- a/apps/admin/list-inactive-users.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env ruby
-
-# usage: list-inactive-users.rb [n-days-old-to-ignore]
-#
-# (default = 7)
-
-abort 'Error: Ruby >= 1.9.3 required.' if RUBY_VERSION < '1.9.3'
-
-threshold = ARGV.shift.to_i rescue 7
-
-require 'arvados'
-arv = Arvados.new(api_version: 'v1')
-
-saidheader = false
-arv.user.list(where: {is_active: false})[:items].each do |user|
-  if Time.now - Time.parse(user[:created_at]) < threshold*86400
-    if !saidheader
-      saidheader = true
-      puts "Inactive users who first logged in <#{threshold} days ago:"
-      puts ""
-    end
-    puts "#{user[:modified_at]} #{user[:uuid]} #{user[:full_name]} <#{user[:email]}>"
-  end
-end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list