rakelib/support.rb
changeset 102 fc572bd895f2
parent 88 112075e99cef
child 137 e665031cade7
equal deleted inserted replaced
101:32f9287b419a 102:fc572bd895f2
    39 # code or by setting a proper environment variable. But this should not hurt 
    39 # code or by setting a proper environment variable. But this should not hurt 
    40 # much as in that case, unauthorized person wouldn't be able to connect to 
    40 # much as in that case, unauthorized person wouldn't be able to connect to 
    41 # stc and librun repository so the build will fail. 
    41 # stc and librun repository so the build will fail. 
    42 def core_developer?
    42 def core_developer?
    43   # JV's box: jv@..., vranyj1@...
    43   # JV's box: jv@..., vranyj1@...
    44   if (ENV['USER'] == 'jv') or (ENV['USER'] == 'vranyj1')
    44   user = ENV['USER'] || ENV['USERNAME']
    45     return true
    45   if (user == 'jv') or (user == 'vranyj1')
    46   end
       
    47   if (ENV['USERNAME'] == 'jv') or (ENV['USERNAME'] == 'vranyj1')
       
    48     return true
    46     return true
    49   end
    47   end
    50   return false
    48   return false
    51 end
    49 end
    52 
    50