Rakefile in wakame-vdc-agents-11.06.0 vs Rakefile in wakame-vdc-agents-11.12.0

- old
+ new

@@ -7,40 +7,27 @@ require 'rake/clean' require 'dcmgr' task :environment do Dcmgr.configure 'config/dcmgr.conf' - Dcmgr.run_initializers end namespace :db do desc 'Create all database tables' task :init => [ :environment ] do - ::Kernel.load(File.expand_path('../config/initializers/sequel.rb', __FILE__)) - require 'isono' - - Dcmgr::Models::CREATE_TABLE_CLASSES.each { |c| - Dcmgr::Models.const_get(c).create_table! - } - Isono::Models::NodeState.create_table! - Isono::Models::JobState.create_table! + Dcmgr.run_initializers(:sequel) - Dcmgr::Models::CREATE_TABLE_CLASSES.each { |c| - Dcmgr::Models.const_get(c).install_data - } + Sequel.extension :migration + Sequel::Migrator.apply(Sequel::DATABASES.first, File.expand_path('../config/db/migrations', __FILE__), 9999) end desc 'Drop all database tables' task :drop => [ :environment ] do - require 'sequel' - require 'isono' + Dcmgr.run_initializers(:sequel) - Dcmgr::Models::CREATE_TABLE_CLASSES.each { |c| - Dcmgr::Models.const_get(c).drop_table - } - Isono::Models::NodeState.drop_table - Isono::Models::JobState.drop_table + Sequel.extension :migration + Sequel::Migrator.apply(Sequel::DATABASES.first, File.expand_path('../config/db/migrations', __FILE__), 0) end end desc 'run bundle command to install vendored gems.' task :bundle do @@ -65,12 +52,12 @@ s.version = Dcmgr::VERSION s.authors = ['axsh Ltd.'] s.email = ['dev@axsh.net'] s.homepage = 'http://wakame.jp/' s.name = 'wakame-vdc-dcmgr' - s.summary = "Datacenter management toolkit for IaaS Cloud: datacenter manager and support modules" - s.description = '' + s.summary = "Wakame-VDC: Server modules" + s.description = 'Datacenter Hypervisor' s.require_path = 'lib' s.required_ruby_version = '>= 1.8.7' s.files = Dir['config/**/*.rb', 'lib/**/*.rb', 'web/api/public/**/*.*', 'web/metadata/public/**/*.*'] + @@ -78,22 +65,24 @@ web/api/config.ru web/metadata/config.ru config/dcmgr.conf.example) s.bindir='bin' s.executables = %w(collector) - s.add_dependency "isono", "0.2.3" + s.add_dependency "isono", "0.2.9" s.add_dependency "log4r" s.add_dependency "extlib", '0.9.15' s.add_dependency "configuration" - s.add_dependency "statemachine", '1.1.1' s.add_dependency "ruby-hmac" s.add_dependency "ipaddress", '0.7.0' - s.add_dependency "rack", ">= 1.2.1" - s.add_dependency "sinatra", "1.2.1" + s.add_dependency "rack", ">= 1.3.2" + s.add_dependency "sinatra", "1.2.6" s.add_dependency "json", ">= 1.2.0" - s.add_dependency "sequel", "3.21.0" + s.add_dependency "sequel", "3.27.0" s.add_dependency "mysql", ">= 2.8.1" + s.add_dependency "net-dhcp", ">= 1.1.0" + s.add_dependency "bit-struct", ">= 0.13.6" + s.add_dependency "racket", ">= 1.0.11" s.add_development_dependency 'bacon' s.add_development_dependency 'rake' end @@ -105,26 +94,25 @@ s.version = Dcmgr::VERSION s.authors = ['axsh Ltd.'] s.email = ['dev@axsh.net'] s.homepage = 'http://wakame.jp/' s.name = 'wakame-vdc-agents' - s.summary = "Datacenter management toolkit for IaaS Cloud: agent modules" - s.description = '' + s.summary = "Wakame-VDC: Agent modules" + s.description = 'Datacenter Hypervisor' s.require_path = 'lib' s.required_ruby_version = '>= 1.8.7' s.files = Dir['config/**/*.rb', 'lib/**/*.rb'] + %w(Rakefile LICENSE NOTICE config/hva.conf.example config/nsa.conf.example) s.bindir='bin' s.executables = %w(hva sta nsa) - s.add_dependency "isono", "0.2.3" + s.add_dependency "isono", "0.2.9" s.add_dependency "log4r" s.add_dependency "extlib", '0.9.15' s.add_dependency "configuration" - s.add_dependency "statemachine", '1.1.1' s.add_dependency "ruby-hmac" s.add_dependency "ipaddress", '0.7.0' s.add_dependency "open4" s.add_development_dependency 'bacon'