lib/environment.rb in dev_tasks-0.0.163 vs lib/environment.rb in dev_tasks-0.0.164
- old
+ new
@@ -76,10 +76,15 @@
end
machine = `hostname`
machine = machine.split('.')[0] if machine.include?('.')
return machine.strip
- end
+ end
+
+ def self.user
+ return ENV['USER'] if !ENV['USER'].nil? #on Unix
+ ENV['USERNAME']
+ end
def self.working_directory
Rake.application.original_dir
end
\ No newline at end of file