lib/environment.rb in dev_tasks-0.0.38 vs lib/environment.rb in dev_tasks-0.0.39

- old
+ new

@@ -20,9 +20,19 @@ dir=ENV["DEV_ROOT"].gsub('\\','/') unless ENV["DEV_ROOT"].nil? return dir end + def self.machine + if !ENV['COMPUTERNAME'].nil? + return ENV['COMPUTERNAME'] + end + + machine = `hostname` + machine = machine.split('.')[0] if machine.include?('.') + return machine.strip + end + def self.working_directory Rake.application.original_dir end def self.context \ No newline at end of file