lib/upgrade.rb in dev_tasks-0.0.155 vs lib/upgrade.rb in dev_tasks-0.0.156
- old
+ new
@@ -1,13 +1,10 @@
+require_relative('./commandarray.rb')
require_relative('./environment.rb')
-class Upgrade < Array
+class Upgrade < CommandArray
- def initialize
- update
- end
-
def update
if(Environment.scm=='git' && Environment.branch=='develop')
Dir.glob('dep/**/*.dll').each {|f|
src=Environment.dev_root + "/" + f
if(File.exist?(src) && File.mtime(src) > File.mtime(f))
@@ -50,9 +47,6 @@
end
end
end
end
- def add command
- self << command if(!include?(command))
- end
end
\ No newline at end of file